Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockIssueStore
- type MockIssueStoreMockRecorder
- type MockLockStore
- type MockLockStoreMockRecorder
- type MockPullRequestStore
- func (m *MockPullRequestStore) EXPECT() *MockPullRequestStoreMockRecorder
- func (m *MockPullRequestStore) Get(repoOwner, repoName string, number int) (*model.PullRequest, error)
- func (m *MockPullRequestStore) ListOpen() ([]*model.PullRequest, error)
- func (m *MockPullRequestStore) Save(pr *model.PullRequest) (*model.PullRequest, error)
- type MockPullRequestStoreMockRecorder
- type MockStore
- type MockStoreMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIssueStore ¶
type MockIssueStore struct {
// contains filtered or unexported fields
}
MockIssueStore is a mock of IssueStore interface.
func NewMockIssueStore ¶
func NewMockIssueStore(ctrl *gomock.Controller) *MockIssueStore
NewMockIssueStore creates a new mock instance.
func (*MockIssueStore) EXPECT ¶
func (m *MockIssueStore) EXPECT() *MockIssueStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIssueStoreMockRecorder ¶
type MockIssueStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockIssueStoreMockRecorder is the mock recorder for MockIssueStore.
func (*MockIssueStoreMockRecorder) Get ¶
func (mr *MockIssueStoreMockRecorder) Get(repoOwner, repoName, number interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockIssueStoreMockRecorder) Save ¶
func (mr *MockIssueStoreMockRecorder) Save(issue interface{}) *gomock.Call
Save indicates an expected call of Save.
type MockLockStore ¶ added in v0.15.0
type MockLockStore struct {
// contains filtered or unexported fields
}
MockLockStore is a mock of LockStore interface.
func NewMockLockStore ¶ added in v0.15.0
func NewMockLockStore(ctrl *gomock.Controller) *MockLockStore
NewMockLockStore creates a new mock instance.
func (*MockLockStore) EXPECT ¶ added in v0.15.0
func (m *MockLockStore) EXPECT() *MockLockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLockStore) Lock ¶ added in v0.15.0
func (m *MockLockStore) Lock(ctx context.Context) error
Lock mocks base method.
func (*MockLockStore) Unlock ¶ added in v0.15.0
func (m *MockLockStore) Unlock() error
Unlock mocks base method.
type MockLockStoreMockRecorder ¶ added in v0.15.0
type MockLockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockLockStoreMockRecorder is the mock recorder for MockLockStore.
func (*MockLockStoreMockRecorder) Lock ¶ added in v0.15.0
func (mr *MockLockStoreMockRecorder) Lock(ctx interface{}) *gomock.Call
Lock indicates an expected call of Lock.
func (*MockLockStoreMockRecorder) Unlock ¶ added in v0.15.0
func (mr *MockLockStoreMockRecorder) Unlock() *gomock.Call
Unlock indicates an expected call of Unlock.
type MockPullRequestStore ¶
type MockPullRequestStore struct {
// contains filtered or unexported fields
}
MockPullRequestStore is a mock of PullRequestStore interface.
func NewMockPullRequestStore ¶
func NewMockPullRequestStore(ctrl *gomock.Controller) *MockPullRequestStore
NewMockPullRequestStore creates a new mock instance.
func (*MockPullRequestStore) EXPECT ¶
func (m *MockPullRequestStore) EXPECT() *MockPullRequestStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPullRequestStore) Get ¶
func (m *MockPullRequestStore) Get(repoOwner, repoName string, number int) (*model.PullRequest, error)
Get mocks base method.
func (*MockPullRequestStore) ListOpen ¶
func (m *MockPullRequestStore) ListOpen() ([]*model.PullRequest, error)
ListOpen mocks base method.
func (*MockPullRequestStore) Save ¶
func (m *MockPullRequestStore) Save(pr *model.PullRequest) (*model.PullRequest, error)
Save mocks base method.
type MockPullRequestStoreMockRecorder ¶
type MockPullRequestStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockPullRequestStoreMockRecorder is the mock recorder for MockPullRequestStore.
func (*MockPullRequestStoreMockRecorder) Get ¶
func (mr *MockPullRequestStoreMockRecorder) Get(repoOwner, repoName, number interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockPullRequestStoreMockRecorder) ListOpen ¶
func (mr *MockPullRequestStoreMockRecorder) ListOpen() *gomock.Call
ListOpen indicates an expected call of ListOpen.
func (*MockPullRequestStoreMockRecorder) Save ¶
func (mr *MockPullRequestStoreMockRecorder) Save(pr interface{}) *gomock.Call
Save indicates an expected call of Save.
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) DropAllTables ¶
func (m *MockStore) DropAllTables()
DropAllTables mocks base method.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStore) PullRequest ¶
func (m *MockStore) PullRequest() store.PullRequestStore
PullRequest mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) Close ¶
func (mr *MockStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStoreMockRecorder) DropAllTables ¶
func (mr *MockStoreMockRecorder) DropAllTables() *gomock.Call
DropAllTables indicates an expected call of DropAllTables.
func (*MockStoreMockRecorder) Issue ¶
func (mr *MockStoreMockRecorder) Issue() *gomock.Call
Issue indicates an expected call of Issue.
func (*MockStoreMockRecorder) Mutex ¶ added in v0.15.0
func (mr *MockStoreMockRecorder) Mutex() *gomock.Call
Mutex indicates an expected call of Mutex.
func (*MockStoreMockRecorder) PullRequest ¶
func (mr *MockStoreMockRecorder) PullRequest() *gomock.Call
PullRequest indicates an expected call of PullRequest.