Documentation ¶
Index ¶
- type PermanentBranchesProvider
- func (_m *PermanentBranchesProvider) BatchUpsert(ctx context.Context, owner string, repo string, branches []string) (permanentbranches.BatchUpsertResult, error)
- func (_m *PermanentBranchesProvider) EXPECT() *PermanentBranchesProvider_Expecter
- func (_m *PermanentBranchesProvider) IsPermanentBranch(ctx context.Context, owner string, repo string, branch string) (bool, error)
- func (_m *PermanentBranchesProvider) List(ctx context.Context, owner string, repo string) ([]string, error)
- type PermanentBranchesProvider_BatchUpsert_Call
- func (_c *PermanentBranchesProvider_BatchUpsert_Call) Return(_a0 permanentbranches.BatchUpsertResult, _a1 error) *PermanentBranchesProvider_BatchUpsert_Call
- func (_c *PermanentBranchesProvider_BatchUpsert_Call) Run(run func(ctx context.Context, owner string, repo string, branches []string)) *PermanentBranchesProvider_BatchUpsert_Call
- func (_c *PermanentBranchesProvider_BatchUpsert_Call) RunAndReturn(...) *PermanentBranchesProvider_BatchUpsert_Call
- type PermanentBranchesProvider_Expecter
- func (_e *PermanentBranchesProvider_Expecter) BatchUpsert(ctx interface{}, owner interface{}, repo interface{}, branches interface{}) *PermanentBranchesProvider_BatchUpsert_Call
- func (_e *PermanentBranchesProvider_Expecter) IsPermanentBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *PermanentBranchesProvider_IsPermanentBranch_Call
- func (_e *PermanentBranchesProvider_Expecter) List(ctx interface{}, owner interface{}, repo interface{}) *PermanentBranchesProvider_List_Call
- type PermanentBranchesProvider_IsPermanentBranch_Call
- func (_c *PermanentBranchesProvider_IsPermanentBranch_Call) Return(_a0 bool, _a1 error) *PermanentBranchesProvider_IsPermanentBranch_Call
- func (_c *PermanentBranchesProvider_IsPermanentBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *PermanentBranchesProvider_IsPermanentBranch_Call
- func (_c *PermanentBranchesProvider_IsPermanentBranch_Call) RunAndReturn(run func(context.Context, string, string, string) (bool, error)) *PermanentBranchesProvider_IsPermanentBranch_Call
- type PermanentBranchesProvider_List_Call
- func (_c *PermanentBranchesProvider_List_Call) Return(_a0 []string, _a1 error) *PermanentBranchesProvider_List_Call
- func (_c *PermanentBranchesProvider_List_Call) Run(run func(ctx context.Context, owner string, repo string)) *PermanentBranchesProvider_List_Call
- func (_c *PermanentBranchesProvider_List_Call) RunAndReturn(run func(context.Context, string, string) ([]string, error)) *PermanentBranchesProvider_List_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermanentBranchesProvider ¶
PermanentBranchesProvider is an autogenerated mock type for the PermanentBranchesProvider type
func NewPermanentBranchesProvider ¶
func NewPermanentBranchesProvider(t mockConstructorTestingTNewPermanentBranchesProvider) *PermanentBranchesProvider
NewPermanentBranchesProvider creates a new instance of PermanentBranchesProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PermanentBranchesProvider) BatchUpsert ¶
func (_m *PermanentBranchesProvider) BatchUpsert(ctx context.Context, owner string, repo string, branches []string) (permanentbranches.BatchUpsertResult, error)
BatchUpsert provides a mock function with given fields: ctx, owner, repo, branches
func (*PermanentBranchesProvider) EXPECT ¶
func (_m *PermanentBranchesProvider) EXPECT() *PermanentBranchesProvider_Expecter
func (*PermanentBranchesProvider) IsPermanentBranch ¶
func (_m *PermanentBranchesProvider) IsPermanentBranch(ctx context.Context, owner string, repo string, branch string) (bool, error)
IsPermanentBranch provides a mock function with given fields: ctx, owner, repo, branch
type PermanentBranchesProvider_BatchUpsert_Call ¶
PermanentBranchesProvider_BatchUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchUpsert'
func (*PermanentBranchesProvider_BatchUpsert_Call) Return ¶
func (_c *PermanentBranchesProvider_BatchUpsert_Call) Return(_a0 permanentbranches.BatchUpsertResult, _a1 error) *PermanentBranchesProvider_BatchUpsert_Call
func (*PermanentBranchesProvider_BatchUpsert_Call) Run ¶
func (_c *PermanentBranchesProvider_BatchUpsert_Call) Run(run func(ctx context.Context, owner string, repo string, branches []string)) *PermanentBranchesProvider_BatchUpsert_Call
func (*PermanentBranchesProvider_BatchUpsert_Call) RunAndReturn ¶
func (_c *PermanentBranchesProvider_BatchUpsert_Call) RunAndReturn(run func(context.Context, string, string, []string) (permanentbranches.BatchUpsertResult, error)) *PermanentBranchesProvider_BatchUpsert_Call
type PermanentBranchesProvider_Expecter ¶
type PermanentBranchesProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*PermanentBranchesProvider_Expecter) BatchUpsert ¶
func (_e *PermanentBranchesProvider_Expecter) BatchUpsert(ctx interface{}, owner interface{}, repo interface{}, branches interface{}) *PermanentBranchesProvider_BatchUpsert_Call
BatchUpsert is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branches []string
func (*PermanentBranchesProvider_Expecter) IsPermanentBranch ¶
func (_e *PermanentBranchesProvider_Expecter) IsPermanentBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *PermanentBranchesProvider_IsPermanentBranch_Call
IsPermanentBranch is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branch string
func (*PermanentBranchesProvider_Expecter) List ¶
func (_e *PermanentBranchesProvider_Expecter) List(ctx interface{}, owner interface{}, repo interface{}) *PermanentBranchesProvider_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
type PermanentBranchesProvider_IsPermanentBranch_Call ¶
PermanentBranchesProvider_IsPermanentBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPermanentBranch'
func (*PermanentBranchesProvider_IsPermanentBranch_Call) Return ¶
func (_c *PermanentBranchesProvider_IsPermanentBranch_Call) Return(_a0 bool, _a1 error) *PermanentBranchesProvider_IsPermanentBranch_Call
func (*PermanentBranchesProvider_IsPermanentBranch_Call) Run ¶
func (_c *PermanentBranchesProvider_IsPermanentBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *PermanentBranchesProvider_IsPermanentBranch_Call
func (*PermanentBranchesProvider_IsPermanentBranch_Call) RunAndReturn ¶
func (_c *PermanentBranchesProvider_IsPermanentBranch_Call) RunAndReturn(run func(context.Context, string, string, string) (bool, error)) *PermanentBranchesProvider_IsPermanentBranch_Call
type PermanentBranchesProvider_List_Call ¶
PermanentBranchesProvider_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PermanentBranchesProvider_List_Call) Return ¶
func (_c *PermanentBranchesProvider_List_Call) Return(_a0 []string, _a1 error) *PermanentBranchesProvider_List_Call
func (*PermanentBranchesProvider_List_Call) Run ¶
func (_c *PermanentBranchesProvider_List_Call) Run(run func(ctx context.Context, owner string, repo string)) *PermanentBranchesProvider_List_Call
func (*PermanentBranchesProvider_List_Call) RunAndReturn ¶
func (_c *PermanentBranchesProvider_List_Call) RunAndReturn(run func(context.Context, string, string) ([]string, error)) *PermanentBranchesProvider_List_Call