mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermanentBranchesProvider

type PermanentBranchesProvider struct {
	mock.Mock
}

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 (*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

func (*PermanentBranchesProvider) List

func (_m *PermanentBranchesProvider) List(ctx context.Context, owner string, repo string) ([]string, error)

List provides a mock function with given fields: ctx, owner, repo

type PermanentBranchesProvider_BatchUpsert_Call

type PermanentBranchesProvider_BatchUpsert_Call struct {
	*mock.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 (*PermanentBranchesProvider_BatchUpsert_Call) Run

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

type PermanentBranchesProvider_IsPermanentBranch_Call struct {
	*mock.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 (*PermanentBranchesProvider_IsPermanentBranch_Call) Run

func (*PermanentBranchesProvider_IsPermanentBranch_Call) RunAndReturn

type PermanentBranchesProvider_List_Call

type PermanentBranchesProvider_List_Call struct {
	*mock.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 (*PermanentBranchesProvider_List_Call) Run

func (*PermanentBranchesProvider_List_Call) RunAndReturn

Jump to

Keyboard shortcuts

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