mocks

package
v3.37.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SourcesCheckable

type SourcesCheckable struct {
	mock.Mock
}

SourcesCheckable is an autogenerated mock type for the SourcesCheckable type

func NewSourcesCheckable

func NewSourcesCheckable(t mockConstructorTestingTNewSourcesCheckable) *SourcesCheckable

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

func (*SourcesCheckable) EXPECT

func (*SourcesCheckable) IsUpToDate

func (_m *SourcesCheckable) IsUpToDate(t *ast.Task) (bool, error)

IsUpToDate provides a mock function with given fields: t

func (*SourcesCheckable) Kind

func (_m *SourcesCheckable) Kind() string

Kind provides a mock function with given fields:

func (*SourcesCheckable) OnError

func (_m *SourcesCheckable) OnError(t *ast.Task) error

OnError provides a mock function with given fields: t

func (*SourcesCheckable) Value

func (_m *SourcesCheckable) Value(t *ast.Task) (interface{}, error)

Value provides a mock function with given fields: t

type SourcesCheckable_Expecter

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

func (*SourcesCheckable_Expecter) IsUpToDate

func (_e *SourcesCheckable_Expecter) IsUpToDate(t interface{}) *SourcesCheckable_IsUpToDate_Call

IsUpToDate is a helper method to define mock.On call

  • t *ast.Task

func (*SourcesCheckable_Expecter) Kind

Kind is a helper method to define mock.On call

func (*SourcesCheckable_Expecter) OnError

func (_e *SourcesCheckable_Expecter) OnError(t interface{}) *SourcesCheckable_OnError_Call

OnError is a helper method to define mock.On call

  • t *ast.Task

func (*SourcesCheckable_Expecter) Value

func (_e *SourcesCheckable_Expecter) Value(t interface{}) *SourcesCheckable_Value_Call

Value is a helper method to define mock.On call

  • t *ast.Task

type SourcesCheckable_IsUpToDate_Call

type SourcesCheckable_IsUpToDate_Call struct {
	*mock.Call
}

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

func (*SourcesCheckable_IsUpToDate_Call) Return

func (*SourcesCheckable_IsUpToDate_Call) Run

func (*SourcesCheckable_IsUpToDate_Call) RunAndReturn

type SourcesCheckable_Kind_Call

type SourcesCheckable_Kind_Call struct {
	*mock.Call
}

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

func (*SourcesCheckable_Kind_Call) Return

func (*SourcesCheckable_Kind_Call) Run

func (*SourcesCheckable_Kind_Call) RunAndReturn

func (_c *SourcesCheckable_Kind_Call) RunAndReturn(run func() string) *SourcesCheckable_Kind_Call

type SourcesCheckable_OnError_Call

type SourcesCheckable_OnError_Call struct {
	*mock.Call
}

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

func (*SourcesCheckable_OnError_Call) Return

func (*SourcesCheckable_OnError_Call) Run

func (*SourcesCheckable_OnError_Call) RunAndReturn

type SourcesCheckable_Value_Call

type SourcesCheckable_Value_Call struct {
	*mock.Call
}

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

func (*SourcesCheckable_Value_Call) Return

func (_c *SourcesCheckable_Value_Call) Return(_a0 interface{}, _a1 error) *SourcesCheckable_Value_Call

func (*SourcesCheckable_Value_Call) Run

func (*SourcesCheckable_Value_Call) RunAndReturn

func (_c *SourcesCheckable_Value_Call) RunAndReturn(run func(*ast.Task) (interface{}, error)) *SourcesCheckable_Value_Call

type StatusCheckable

type StatusCheckable struct {
	mock.Mock
}

StatusCheckable is an autogenerated mock type for the StatusCheckable type

func NewStatusCheckable

func NewStatusCheckable(t mockConstructorTestingTNewStatusCheckable) *StatusCheckable

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

func (*StatusCheckable) EXPECT

func (*StatusCheckable) IsUpToDate

func (_m *StatusCheckable) IsUpToDate(ctx context.Context, t *ast.Task) (bool, error)

IsUpToDate provides a mock function with given fields: ctx, t

type StatusCheckable_Expecter

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

func (*StatusCheckable_Expecter) IsUpToDate

func (_e *StatusCheckable_Expecter) IsUpToDate(ctx interface{}, t interface{}) *StatusCheckable_IsUpToDate_Call

IsUpToDate is a helper method to define mock.On call

  • ctx context.Context
  • t *ast.Task

type StatusCheckable_IsUpToDate_Call

type StatusCheckable_IsUpToDate_Call struct {
	*mock.Call
}

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

func (*StatusCheckable_IsUpToDate_Call) Return

func (*StatusCheckable_IsUpToDate_Call) Run

func (*StatusCheckable_IsUpToDate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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