Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) CreateOrgRepo(org string, opt gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)
- func (m *MockClient) CreateRepo(opt gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetMyUserInfo() (*gitea.User, *gitea.Response, error)
- func (m *MockClient) GetRepo(owner, reponame string) (*gitea.Repository, *gitea.Response, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) CreateOrgRepo(org, opt interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateRepo(opt interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetMyUserInfo() *gomock.Call
- func (mr *MockClientMockRecorder) GetRepo(owner, reponame interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶ added in v0.3.1
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶ added in v0.3.1
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) CreateOrgRepo ¶ added in v0.3.1
func (m *MockClient) CreateOrgRepo(org string, opt gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)
CreateOrgRepo mocks base method.
func (*MockClient) CreateRepo ¶ added in v0.3.1
func (m *MockClient) CreateRepo(opt gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)
CreateRepo mocks base method.
func (*MockClient) EXPECT ¶ added in v0.3.1
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetMyUserInfo ¶ added in v0.3.1
GetMyUserInfo mocks base method.
func (*MockClient) GetRepo ¶ added in v0.4.0
func (m *MockClient) GetRepo(owner, reponame string) (*gitea.Repository, *gitea.Response, error)
GetRepo mocks base method.
type MockClientMockRecorder ¶ added in v0.3.1
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CreateOrgRepo ¶ added in v0.3.1
func (mr *MockClientMockRecorder) CreateOrgRepo(org, opt interface{}) *gomock.Call
CreateOrgRepo indicates an expected call of CreateOrgRepo.
func (*MockClientMockRecorder) CreateRepo ¶ added in v0.3.1
func (mr *MockClientMockRecorder) CreateRepo(opt interface{}) *gomock.Call
CreateRepo indicates an expected call of CreateRepo.
func (*MockClientMockRecorder) GetMyUserInfo ¶ added in v0.3.1
func (mr *MockClientMockRecorder) GetMyUserInfo() *gomock.Call
GetMyUserInfo indicates an expected call of GetMyUserInfo.
func (*MockClientMockRecorder) GetRepo ¶ added in v0.4.0
func (mr *MockClientMockRecorder) GetRepo(owner, reponame interface{}) *gomock.Call
GetRepo indicates an expected call of GetRepo.
Click to show internal directories.
Click to hide internal directories.