Documentation ¶
Index ¶
- type GiteaClient
- type MockGiteaClient
- func (_m *MockGiteaClient) CreateAccessToken(opt gitea.CreateAccessTokenOption) (*gitea.AccessToken, *gitea.Response, error)
- func (_m *MockGiteaClient) CreateRepo(createRepoOption gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)
- func (_m *MockGiteaClient) DeleteAccessToken(value interface{}) (*gitea.Response, error)
- func (_m *MockGiteaClient) DeleteRepo(owner string, repo string) (*gitea.Response, error)
- func (_m *MockGiteaClient) EXPECT() *MockGiteaClient_Expecter
- func (_m *MockGiteaClient) EditRepo(userName string, repoCRName string, editRepoOption gitea.EditRepoOption) (*gitea.Repository, *gitea.Response, error)
- func (_m *MockGiteaClient) Get() *gitea.Client
- func (_m *MockGiteaClient) GetMyUserInfo() (*gitea.User, *gitea.Response, error)
- func (_m *MockGiteaClient) GetRepo(userName string, repoCRName string) (*gitea.Repository, *gitea.Response, error)
- func (_m *MockGiteaClient) IsInitialized() bool
- func (_m *MockGiteaClient) ListAccessTokens(opts gitea.ListAccessTokensOptions) ([]*gitea.AccessToken, *gitea.Response, error)
- func (_m *MockGiteaClient) Start(ctx context.Context)
- type MockGiteaClient_CreateAccessToken_Call
- func (_c *MockGiteaClient_CreateAccessToken_Call) Return(_a0 *gitea.AccessToken, _a1 *gitea.Response, _a2 error) *MockGiteaClient_CreateAccessToken_Call
- func (_c *MockGiteaClient_CreateAccessToken_Call) Run(run func(opt gitea.CreateAccessTokenOption)) *MockGiteaClient_CreateAccessToken_Call
- func (_c *MockGiteaClient_CreateAccessToken_Call) RunAndReturn(...) *MockGiteaClient_CreateAccessToken_Call
- type MockGiteaClient_CreateRepo_Call
- func (_c *MockGiteaClient_CreateRepo_Call) Return(_a0 *gitea.Repository, _a1 *gitea.Response, _a2 error) *MockGiteaClient_CreateRepo_Call
- func (_c *MockGiteaClient_CreateRepo_Call) Run(run func(createRepoOption gitea.CreateRepoOption)) *MockGiteaClient_CreateRepo_Call
- func (_c *MockGiteaClient_CreateRepo_Call) RunAndReturn(run func(gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)) *MockGiteaClient_CreateRepo_Call
- type MockGiteaClient_DeleteAccessToken_Call
- func (_c *MockGiteaClient_DeleteAccessToken_Call) Return(_a0 *gitea.Response, _a1 error) *MockGiteaClient_DeleteAccessToken_Call
- func (_c *MockGiteaClient_DeleteAccessToken_Call) Run(run func(value interface{})) *MockGiteaClient_DeleteAccessToken_Call
- func (_c *MockGiteaClient_DeleteAccessToken_Call) RunAndReturn(run func(interface{}) (*gitea.Response, error)) *MockGiteaClient_DeleteAccessToken_Call
- type MockGiteaClient_DeleteRepo_Call
- func (_c *MockGiteaClient_DeleteRepo_Call) Return(_a0 *gitea.Response, _a1 error) *MockGiteaClient_DeleteRepo_Call
- func (_c *MockGiteaClient_DeleteRepo_Call) Run(run func(owner string, repo string)) *MockGiteaClient_DeleteRepo_Call
- func (_c *MockGiteaClient_DeleteRepo_Call) RunAndReturn(run func(string, string) (*gitea.Response, error)) *MockGiteaClient_DeleteRepo_Call
- type MockGiteaClient_EditRepo_Call
- func (_c *MockGiteaClient_EditRepo_Call) Return(_a0 *gitea.Repository, _a1 *gitea.Response, _a2 error) *MockGiteaClient_EditRepo_Call
- func (_c *MockGiteaClient_EditRepo_Call) Run(...) *MockGiteaClient_EditRepo_Call
- func (_c *MockGiteaClient_EditRepo_Call) RunAndReturn(...) *MockGiteaClient_EditRepo_Call
- type MockGiteaClient_Expecter
- func (_e *MockGiteaClient_Expecter) CreateAccessToken(opt interface{}) *MockGiteaClient_CreateAccessToken_Call
- func (_e *MockGiteaClient_Expecter) CreateRepo(createRepoOption interface{}) *MockGiteaClient_CreateRepo_Call
- func (_e *MockGiteaClient_Expecter) DeleteAccessToken(value interface{}) *MockGiteaClient_DeleteAccessToken_Call
- func (_e *MockGiteaClient_Expecter) DeleteRepo(owner interface{}, repo interface{}) *MockGiteaClient_DeleteRepo_Call
- func (_e *MockGiteaClient_Expecter) EditRepo(userName interface{}, repoCRName interface{}, editRepoOption interface{}) *MockGiteaClient_EditRepo_Call
- func (_e *MockGiteaClient_Expecter) Get() *MockGiteaClient_Get_Call
- func (_e *MockGiteaClient_Expecter) GetMyUserInfo() *MockGiteaClient_GetMyUserInfo_Call
- func (_e *MockGiteaClient_Expecter) GetRepo(userName interface{}, repoCRName interface{}) *MockGiteaClient_GetRepo_Call
- func (_e *MockGiteaClient_Expecter) IsInitialized() *MockGiteaClient_IsInitialized_Call
- func (_e *MockGiteaClient_Expecter) ListAccessTokens(opts interface{}) *MockGiteaClient_ListAccessTokens_Call
- func (_e *MockGiteaClient_Expecter) Start(ctx interface{}) *MockGiteaClient_Start_Call
- type MockGiteaClient_GetMyUserInfo_Call
- func (_c *MockGiteaClient_GetMyUserInfo_Call) Return(_a0 *gitea.User, _a1 *gitea.Response, _a2 error) *MockGiteaClient_GetMyUserInfo_Call
- func (_c *MockGiteaClient_GetMyUserInfo_Call) Run(run func()) *MockGiteaClient_GetMyUserInfo_Call
- func (_c *MockGiteaClient_GetMyUserInfo_Call) RunAndReturn(run func() (*gitea.User, *gitea.Response, error)) *MockGiteaClient_GetMyUserInfo_Call
- type MockGiteaClient_GetRepo_Call
- func (_c *MockGiteaClient_GetRepo_Call) Return(_a0 *gitea.Repository, _a1 *gitea.Response, _a2 error) *MockGiteaClient_GetRepo_Call
- func (_c *MockGiteaClient_GetRepo_Call) Run(run func(userName string, repoCRName string)) *MockGiteaClient_GetRepo_Call
- func (_c *MockGiteaClient_GetRepo_Call) RunAndReturn(run func(string, string) (*gitea.Repository, *gitea.Response, error)) *MockGiteaClient_GetRepo_Call
- type MockGiteaClient_Get_Call
- type MockGiteaClient_IsInitialized_Call
- func (_c *MockGiteaClient_IsInitialized_Call) Return(_a0 bool) *MockGiteaClient_IsInitialized_Call
- func (_c *MockGiteaClient_IsInitialized_Call) Run(run func()) *MockGiteaClient_IsInitialized_Call
- func (_c *MockGiteaClient_IsInitialized_Call) RunAndReturn(run func() bool) *MockGiteaClient_IsInitialized_Call
- type MockGiteaClient_ListAccessTokens_Call
- func (_c *MockGiteaClient_ListAccessTokens_Call) Return(_a0 []*gitea.AccessToken, _a1 *gitea.Response, _a2 error) *MockGiteaClient_ListAccessTokens_Call
- func (_c *MockGiteaClient_ListAccessTokens_Call) Run(run func(opts gitea.ListAccessTokensOptions)) *MockGiteaClient_ListAccessTokens_Call
- func (_c *MockGiteaClient_ListAccessTokens_Call) RunAndReturn(...) *MockGiteaClient_ListAccessTokens_Call
- type MockGiteaClient_Start_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GiteaClient ¶
type GiteaClient interface { Start(ctx context.Context) IsInitialized() bool Get() *gitea.Client GetMyUserInfo() (*gitea.User, *gitea.Response, error) DeleteRepo(owner string, repo string) (*gitea.Response, error) GetRepo(userName string, repoCRName string) (*gitea.Repository, *gitea.Response, error) CreateRepo(createRepoOption gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error) EditRepo(userName string, repoCRName string, editRepoOption gitea.EditRepoOption) (*gitea.Repository, *gitea.Response, error) DeleteAccessToken(value interface{}) (*gitea.Response, error) ListAccessTokens(opts gitea.ListAccessTokensOptions) ([]*gitea.AccessToken, *gitea.Response, error) CreateAccessToken(opt gitea.CreateAccessTokenOption) (*gitea.AccessToken, *gitea.Response, error) }
func GetClient ¶
func GetClient(ctx context.Context, client resource.APIPatchingApplicator) (GiteaClient, error)
type MockGiteaClient ¶
MockGiteaClient is an autogenerated mock type for the GiteaClient type
func NewMockGiteaClient ¶
func NewMockGiteaClient(t interface { mock.TestingT Cleanup(func()) }) *MockGiteaClient
NewMockGiteaClient creates a new instance of MockGiteaClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockGiteaClient) CreateAccessToken ¶
func (_m *MockGiteaClient) CreateAccessToken(opt gitea.CreateAccessTokenOption) (*gitea.AccessToken, *gitea.Response, error)
CreateAccessToken provides a mock function with given fields: opt
func (*MockGiteaClient) CreateRepo ¶
func (_m *MockGiteaClient) CreateRepo(createRepoOption gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)
CreateRepo provides a mock function with given fields: createRepoOption
func (*MockGiteaClient) DeleteAccessToken ¶
func (_m *MockGiteaClient) DeleteAccessToken(value interface{}) (*gitea.Response, error)
DeleteAccessToken provides a mock function with given fields: value
func (*MockGiteaClient) DeleteRepo ¶
DeleteRepo provides a mock function with given fields: owner, repo
func (*MockGiteaClient) EXPECT ¶
func (_m *MockGiteaClient) EXPECT() *MockGiteaClient_Expecter
func (*MockGiteaClient) EditRepo ¶
func (_m *MockGiteaClient) EditRepo(userName string, repoCRName string, editRepoOption gitea.EditRepoOption) (*gitea.Repository, *gitea.Response, error)
EditRepo provides a mock function with given fields: userName, repoCRName, editRepoOption
func (*MockGiteaClient) Get ¶
func (_m *MockGiteaClient) Get() *gitea.Client
Get provides a mock function with given fields:
func (*MockGiteaClient) GetMyUserInfo ¶
GetMyUserInfo provides a mock function with given fields:
func (*MockGiteaClient) GetRepo ¶
func (_m *MockGiteaClient) GetRepo(userName string, repoCRName string) (*gitea.Repository, *gitea.Response, error)
GetRepo provides a mock function with given fields: userName, repoCRName
func (*MockGiteaClient) IsInitialized ¶
func (_m *MockGiteaClient) IsInitialized() bool
IsInitialized provides a mock function with given fields:
func (*MockGiteaClient) ListAccessTokens ¶
func (_m *MockGiteaClient) ListAccessTokens(opts gitea.ListAccessTokensOptions) ([]*gitea.AccessToken, *gitea.Response, error)
ListAccessTokens provides a mock function with given fields: opts
func (*MockGiteaClient) Start ¶
func (_m *MockGiteaClient) Start(ctx context.Context)
Start provides a mock function with given fields: ctx
type MockGiteaClient_CreateAccessToken_Call ¶
MockGiteaClient_CreateAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAccessToken'
func (*MockGiteaClient_CreateAccessToken_Call) Return ¶
func (_c *MockGiteaClient_CreateAccessToken_Call) Return(_a0 *gitea.AccessToken, _a1 *gitea.Response, _a2 error) *MockGiteaClient_CreateAccessToken_Call
func (*MockGiteaClient_CreateAccessToken_Call) Run ¶
func (_c *MockGiteaClient_CreateAccessToken_Call) Run(run func(opt gitea.CreateAccessTokenOption)) *MockGiteaClient_CreateAccessToken_Call
func (*MockGiteaClient_CreateAccessToken_Call) RunAndReturn ¶
func (_c *MockGiteaClient_CreateAccessToken_Call) RunAndReturn(run func(gitea.CreateAccessTokenOption) (*gitea.AccessToken, *gitea.Response, error)) *MockGiteaClient_CreateAccessToken_Call
type MockGiteaClient_CreateRepo_Call ¶
MockGiteaClient_CreateRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRepo'
func (*MockGiteaClient_CreateRepo_Call) Return ¶
func (_c *MockGiteaClient_CreateRepo_Call) Return(_a0 *gitea.Repository, _a1 *gitea.Response, _a2 error) *MockGiteaClient_CreateRepo_Call
func (*MockGiteaClient_CreateRepo_Call) Run ¶
func (_c *MockGiteaClient_CreateRepo_Call) Run(run func(createRepoOption gitea.CreateRepoOption)) *MockGiteaClient_CreateRepo_Call
func (*MockGiteaClient_CreateRepo_Call) RunAndReturn ¶
func (_c *MockGiteaClient_CreateRepo_Call) RunAndReturn(run func(gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)) *MockGiteaClient_CreateRepo_Call
type MockGiteaClient_DeleteAccessToken_Call ¶
MockGiteaClient_DeleteAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAccessToken'
func (*MockGiteaClient_DeleteAccessToken_Call) Return ¶
func (_c *MockGiteaClient_DeleteAccessToken_Call) Return(_a0 *gitea.Response, _a1 error) *MockGiteaClient_DeleteAccessToken_Call
func (*MockGiteaClient_DeleteAccessToken_Call) Run ¶
func (_c *MockGiteaClient_DeleteAccessToken_Call) Run(run func(value interface{})) *MockGiteaClient_DeleteAccessToken_Call
func (*MockGiteaClient_DeleteAccessToken_Call) RunAndReturn ¶
func (_c *MockGiteaClient_DeleteAccessToken_Call) RunAndReturn(run func(interface{}) (*gitea.Response, error)) *MockGiteaClient_DeleteAccessToken_Call
type MockGiteaClient_DeleteRepo_Call ¶
MockGiteaClient_DeleteRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRepo'
func (*MockGiteaClient_DeleteRepo_Call) Return ¶
func (_c *MockGiteaClient_DeleteRepo_Call) Return(_a0 *gitea.Response, _a1 error) *MockGiteaClient_DeleteRepo_Call
func (*MockGiteaClient_DeleteRepo_Call) Run ¶
func (_c *MockGiteaClient_DeleteRepo_Call) Run(run func(owner string, repo string)) *MockGiteaClient_DeleteRepo_Call
func (*MockGiteaClient_DeleteRepo_Call) RunAndReturn ¶
func (_c *MockGiteaClient_DeleteRepo_Call) RunAndReturn(run func(string, string) (*gitea.Response, error)) *MockGiteaClient_DeleteRepo_Call
type MockGiteaClient_EditRepo_Call ¶
MockGiteaClient_EditRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditRepo'
func (*MockGiteaClient_EditRepo_Call) Return ¶
func (_c *MockGiteaClient_EditRepo_Call) Return(_a0 *gitea.Repository, _a1 *gitea.Response, _a2 error) *MockGiteaClient_EditRepo_Call
func (*MockGiteaClient_EditRepo_Call) Run ¶
func (_c *MockGiteaClient_EditRepo_Call) Run(run func(userName string, repoCRName string, editRepoOption gitea.EditRepoOption)) *MockGiteaClient_EditRepo_Call
func (*MockGiteaClient_EditRepo_Call) RunAndReturn ¶
func (_c *MockGiteaClient_EditRepo_Call) RunAndReturn(run func(string, string, gitea.EditRepoOption) (*gitea.Repository, *gitea.Response, error)) *MockGiteaClient_EditRepo_Call
type MockGiteaClient_Expecter ¶
type MockGiteaClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGiteaClient_Expecter) CreateAccessToken ¶
func (_e *MockGiteaClient_Expecter) CreateAccessToken(opt interface{}) *MockGiteaClient_CreateAccessToken_Call
CreateAccessToken is a helper method to define mock.On call
- opt gitea.CreateAccessTokenOption
func (*MockGiteaClient_Expecter) CreateRepo ¶
func (_e *MockGiteaClient_Expecter) CreateRepo(createRepoOption interface{}) *MockGiteaClient_CreateRepo_Call
CreateRepo is a helper method to define mock.On call
- createRepoOption gitea.CreateRepoOption
func (*MockGiteaClient_Expecter) DeleteAccessToken ¶
func (_e *MockGiteaClient_Expecter) DeleteAccessToken(value interface{}) *MockGiteaClient_DeleteAccessToken_Call
DeleteAccessToken is a helper method to define mock.On call
- value interface{}
func (*MockGiteaClient_Expecter) DeleteRepo ¶
func (_e *MockGiteaClient_Expecter) DeleteRepo(owner interface{}, repo interface{}) *MockGiteaClient_DeleteRepo_Call
DeleteRepo is a helper method to define mock.On call
- owner string
- repo string
func (*MockGiteaClient_Expecter) EditRepo ¶
func (_e *MockGiteaClient_Expecter) EditRepo(userName interface{}, repoCRName interface{}, editRepoOption interface{}) *MockGiteaClient_EditRepo_Call
EditRepo is a helper method to define mock.On call
- userName string
- repoCRName string
- editRepoOption gitea.EditRepoOption
func (*MockGiteaClient_Expecter) Get ¶
func (_e *MockGiteaClient_Expecter) Get() *MockGiteaClient_Get_Call
Get is a helper method to define mock.On call
func (*MockGiteaClient_Expecter) GetMyUserInfo ¶
func (_e *MockGiteaClient_Expecter) GetMyUserInfo() *MockGiteaClient_GetMyUserInfo_Call
GetMyUserInfo is a helper method to define mock.On call
func (*MockGiteaClient_Expecter) GetRepo ¶
func (_e *MockGiteaClient_Expecter) GetRepo(userName interface{}, repoCRName interface{}) *MockGiteaClient_GetRepo_Call
GetRepo is a helper method to define mock.On call
- userName string
- repoCRName string
func (*MockGiteaClient_Expecter) IsInitialized ¶
func (_e *MockGiteaClient_Expecter) IsInitialized() *MockGiteaClient_IsInitialized_Call
IsInitialized is a helper method to define mock.On call
func (*MockGiteaClient_Expecter) ListAccessTokens ¶
func (_e *MockGiteaClient_Expecter) ListAccessTokens(opts interface{}) *MockGiteaClient_ListAccessTokens_Call
ListAccessTokens is a helper method to define mock.On call
- opts gitea.ListAccessTokensOptions
func (*MockGiteaClient_Expecter) Start ¶
func (_e *MockGiteaClient_Expecter) Start(ctx interface{}) *MockGiteaClient_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
type MockGiteaClient_GetMyUserInfo_Call ¶
MockGiteaClient_GetMyUserInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMyUserInfo'
func (*MockGiteaClient_GetMyUserInfo_Call) Return ¶
func (_c *MockGiteaClient_GetMyUserInfo_Call) Return(_a0 *gitea.User, _a1 *gitea.Response, _a2 error) *MockGiteaClient_GetMyUserInfo_Call
func (*MockGiteaClient_GetMyUserInfo_Call) Run ¶
func (_c *MockGiteaClient_GetMyUserInfo_Call) Run(run func()) *MockGiteaClient_GetMyUserInfo_Call
func (*MockGiteaClient_GetMyUserInfo_Call) RunAndReturn ¶
func (_c *MockGiteaClient_GetMyUserInfo_Call) RunAndReturn(run func() (*gitea.User, *gitea.Response, error)) *MockGiteaClient_GetMyUserInfo_Call
type MockGiteaClient_GetRepo_Call ¶
MockGiteaClient_GetRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepo'
func (*MockGiteaClient_GetRepo_Call) Return ¶
func (_c *MockGiteaClient_GetRepo_Call) Return(_a0 *gitea.Repository, _a1 *gitea.Response, _a2 error) *MockGiteaClient_GetRepo_Call
func (*MockGiteaClient_GetRepo_Call) Run ¶
func (_c *MockGiteaClient_GetRepo_Call) Run(run func(userName string, repoCRName string)) *MockGiteaClient_GetRepo_Call
func (*MockGiteaClient_GetRepo_Call) RunAndReturn ¶
func (_c *MockGiteaClient_GetRepo_Call) RunAndReturn(run func(string, string) (*gitea.Repository, *gitea.Response, error)) *MockGiteaClient_GetRepo_Call
type MockGiteaClient_Get_Call ¶
MockGiteaClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockGiteaClient_Get_Call) Return ¶
func (_c *MockGiteaClient_Get_Call) Return(_a0 *gitea.Client) *MockGiteaClient_Get_Call
func (*MockGiteaClient_Get_Call) Run ¶
func (_c *MockGiteaClient_Get_Call) Run(run func()) *MockGiteaClient_Get_Call
func (*MockGiteaClient_Get_Call) RunAndReturn ¶
func (_c *MockGiteaClient_Get_Call) RunAndReturn(run func() *gitea.Client) *MockGiteaClient_Get_Call
type MockGiteaClient_IsInitialized_Call ¶
MockGiteaClient_IsInitialized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsInitialized'
func (*MockGiteaClient_IsInitialized_Call) Return ¶
func (_c *MockGiteaClient_IsInitialized_Call) Return(_a0 bool) *MockGiteaClient_IsInitialized_Call
func (*MockGiteaClient_IsInitialized_Call) Run ¶
func (_c *MockGiteaClient_IsInitialized_Call) Run(run func()) *MockGiteaClient_IsInitialized_Call
func (*MockGiteaClient_IsInitialized_Call) RunAndReturn ¶
func (_c *MockGiteaClient_IsInitialized_Call) RunAndReturn(run func() bool) *MockGiteaClient_IsInitialized_Call
type MockGiteaClient_ListAccessTokens_Call ¶
MockGiteaClient_ListAccessTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccessTokens'
func (*MockGiteaClient_ListAccessTokens_Call) Return ¶
func (_c *MockGiteaClient_ListAccessTokens_Call) Return(_a0 []*gitea.AccessToken, _a1 *gitea.Response, _a2 error) *MockGiteaClient_ListAccessTokens_Call
func (*MockGiteaClient_ListAccessTokens_Call) Run ¶
func (_c *MockGiteaClient_ListAccessTokens_Call) Run(run func(opts gitea.ListAccessTokensOptions)) *MockGiteaClient_ListAccessTokens_Call
func (*MockGiteaClient_ListAccessTokens_Call) RunAndReturn ¶
func (_c *MockGiteaClient_ListAccessTokens_Call) RunAndReturn(run func(gitea.ListAccessTokensOptions) ([]*gitea.AccessToken, *gitea.Response, error)) *MockGiteaClient_ListAccessTokens_Call
type MockGiteaClient_Start_Call ¶
MockGiteaClient_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockGiteaClient_Start_Call) Return ¶
func (_c *MockGiteaClient_Start_Call) Return() *MockGiteaClient_Start_Call
func (*MockGiteaClient_Start_Call) Run ¶
func (_c *MockGiteaClient_Start_Call) Run(run func(ctx context.Context)) *MockGiteaClient_Start_Call
func (*MockGiteaClient_Start_Call) RunAndReturn ¶
func (_c *MockGiteaClient_Start_Call) RunAndReturn(run func(context.Context)) *MockGiteaClient_Start_Call