mocks

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIssueStore) Get

func (m *MockIssueStore) Get(repoOwner, repoName string, number int) (*model.Issue, error)

Get mocks base method.

func (*MockIssueStore) Save

func (m *MockIssueStore) Save(issue *model.Issue) (*model.Issue, error)

Save mocks base method.

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

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

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

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

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) Close

func (m *MockStore) Close()

Close mocks base method.

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) Issue

func (m *MockStore) Issue() store.IssueStore

Issue mocks base method.

func (*MockStore) Mutex added in v0.15.0

func (m *MockStore) Mutex() store.LockStore

Mutex mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL