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 EnvVarsProvider

type EnvVarsProvider struct {
	mock.Mock
}

EnvVarsProvider is an autogenerated mock type for the EnvVarsProvider type

func NewEnvVarsProvider

func NewEnvVarsProvider(t mockConstructorTestingTNewEnvVarsProvider) *EnvVarsProvider

NewEnvVarsProvider creates a new instance of EnvVarsProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EnvVarsProvider) Delete

func (_m *EnvVarsProvider) Delete(ctx context.Context, owner string, repo string, name string, branch *string) error

Delete provides a mock function with given fields: ctx, owner, repo, name, branch

func (*EnvVarsProvider) EXPECT

func (*EnvVarsProvider) ListByRepo

func (_m *EnvVarsProvider) ListByRepo(ctx context.Context, owner string, repo string) ([]envvars.EnvVar, error)

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

func (*EnvVarsProvider) ListByRepoBranch

func (_m *EnvVarsProvider) ListByRepoBranch(ctx context.Context, owner string, repo string, branch string) ([]envvars.EnvVar, error)

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

func (*EnvVarsProvider) Upsert

func (_m *EnvVarsProvider) Upsert(ctx context.Context, owner string, repo string, name string, value string, branch *string) error

Upsert provides a mock function with given fields: ctx, owner, repo, name, value, branch

type EnvVarsProvider_Delete_Call

type EnvVarsProvider_Delete_Call struct {
	*mock.Call
}

EnvVarsProvider_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*EnvVarsProvider_Delete_Call) Return

func (*EnvVarsProvider_Delete_Call) Run

func (_c *EnvVarsProvider_Delete_Call) Run(run func(ctx context.Context, owner string, repo string, name string, branch *string)) *EnvVarsProvider_Delete_Call

func (*EnvVarsProvider_Delete_Call) RunAndReturn

type EnvVarsProvider_Expecter

type EnvVarsProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*EnvVarsProvider_Expecter) Delete

func (_e *EnvVarsProvider_Expecter) Delete(ctx interface{}, owner interface{}, repo interface{}, name interface{}, branch interface{}) *EnvVarsProvider_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • name string
  • branch *string

func (*EnvVarsProvider_Expecter) ListByRepo

func (_e *EnvVarsProvider_Expecter) ListByRepo(ctx interface{}, owner interface{}, repo interface{}) *EnvVarsProvider_ListByRepo_Call

ListByRepo is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string

func (*EnvVarsProvider_Expecter) ListByRepoBranch

func (_e *EnvVarsProvider_Expecter) ListByRepoBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}) *EnvVarsProvider_ListByRepoBranch_Call

ListByRepoBranch is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • branch string

func (*EnvVarsProvider_Expecter) Upsert

func (_e *EnvVarsProvider_Expecter) Upsert(ctx interface{}, owner interface{}, repo interface{}, name interface{}, value interface{}, branch interface{}) *EnvVarsProvider_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • name string
  • value string
  • branch *string

type EnvVarsProvider_ListByRepoBranch_Call

type EnvVarsProvider_ListByRepoBranch_Call struct {
	*mock.Call
}

EnvVarsProvider_ListByRepoBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByRepoBranch'

func (*EnvVarsProvider_ListByRepoBranch_Call) Return

func (*EnvVarsProvider_ListByRepoBranch_Call) Run

func (*EnvVarsProvider_ListByRepoBranch_Call) RunAndReturn

type EnvVarsProvider_ListByRepo_Call

type EnvVarsProvider_ListByRepo_Call struct {
	*mock.Call
}

EnvVarsProvider_ListByRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByRepo'

func (*EnvVarsProvider_ListByRepo_Call) Return

func (*EnvVarsProvider_ListByRepo_Call) Run

func (*EnvVarsProvider_ListByRepo_Call) RunAndReturn

type EnvVarsProvider_Upsert_Call

type EnvVarsProvider_Upsert_Call struct {
	*mock.Call
}

EnvVarsProvider_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*EnvVarsProvider_Upsert_Call) Return

func (*EnvVarsProvider_Upsert_Call) Run

func (_c *EnvVarsProvider_Upsert_Call) Run(run func(ctx context.Context, owner string, repo string, name string, value string, branch *string)) *EnvVarsProvider_Upsert_Call

func (*EnvVarsProvider_Upsert_Call) RunAndReturn

Jump to

Keyboard shortcuts

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