Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompatibilityChecker

type CompatibilityChecker struct {
	mock.Mock
}

CompatibilityChecker is an autogenerated mock type for the CompatibilityChecker type

func NewCompatibilityChecker

func NewCompatibilityChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *CompatibilityChecker

NewCompatibilityChecker creates a new instance of CompatibilityChecker. 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 (*CompatibilityChecker) Check

Check provides a mock function with given fields: ctx, tx

func (*CompatibilityChecker) EXPECT

type CompatibilityChecker_Check_Call

type CompatibilityChecker_Check_Call struct {
	*mock.Call
}

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

func (*CompatibilityChecker_Check_Call) Return

func (*CompatibilityChecker_Check_Call) Run

func (*CompatibilityChecker_Check_Call) RunAndReturn

type CompatibilityChecker_Expecter

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

func (*CompatibilityChecker_Expecter) Check

func (_e *CompatibilityChecker_Expecter) Check(ctx interface{}, tx interface{}) *CompatibilityChecker_Check_Call

Check is a helper method to define mock.On call

  • ctx context.Context
  • tx types.Querier

type CompatibilityDataStorager

type CompatibilityDataStorager[T any] struct {
	mock.Mock
}

CompatibilityDataStorager is an autogenerated mock type for the CompatibilityDataStorager type

func NewCompatibilityDataStorager

func NewCompatibilityDataStorager[T any](t interface {
	mock.TestingT
	Cleanup(func())
}) *CompatibilityDataStorager[T]

NewCompatibilityDataStorager creates a new instance of CompatibilityDataStorager. 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 (*CompatibilityDataStorager[T]) EXPECT

func (*CompatibilityDataStorager[T]) GetCompatibilityData

func (_m *CompatibilityDataStorager[T]) GetCompatibilityData(ctx context.Context, tx types.Querier) (bool, T, error)

GetCompatibilityData provides a mock function with given fields: ctx, tx

func (*CompatibilityDataStorager[T]) SetCompatibilityData

func (_m *CompatibilityDataStorager[T]) SetCompatibilityData(ctx context.Context, tx types.Querier, data T) error

SetCompatibilityData provides a mock function with given fields: ctx, tx, data

type CompatibilityDataStorager_Expecter

type CompatibilityDataStorager_Expecter[T any] struct {
	// contains filtered or unexported fields
}

func (*CompatibilityDataStorager_Expecter[T]) GetCompatibilityData

func (_e *CompatibilityDataStorager_Expecter[T]) GetCompatibilityData(ctx interface{}, tx interface{}) *CompatibilityDataStorager_GetCompatibilityData_Call[T]

GetCompatibilityData is a helper method to define mock.On call

  • ctx context.Context
  • tx types.Querier

func (*CompatibilityDataStorager_Expecter[T]) SetCompatibilityData

func (_e *CompatibilityDataStorager_Expecter[T]) SetCompatibilityData(ctx interface{}, tx interface{}, data interface{}) *CompatibilityDataStorager_SetCompatibilityData_Call[T]

SetCompatibilityData is a helper method to define mock.On call

  • ctx context.Context
  • tx types.Querier
  • data T

type CompatibilityDataStorager_GetCompatibilityData_Call

type CompatibilityDataStorager_GetCompatibilityData_Call[T any] struct {
	*mock.Call
}

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

func (*CompatibilityDataStorager_GetCompatibilityData_Call[T]) Return

func (*CompatibilityDataStorager_GetCompatibilityData_Call[T]) Run

func (*CompatibilityDataStorager_GetCompatibilityData_Call[T]) RunAndReturn

type CompatibilityDataStorager_SetCompatibilityData_Call

type CompatibilityDataStorager_SetCompatibilityData_Call[T any] struct {
	*mock.Call
}

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

func (*CompatibilityDataStorager_SetCompatibilityData_Call[T]) Return

func (*CompatibilityDataStorager_SetCompatibilityData_Call[T]) Run

func (*CompatibilityDataStorager_SetCompatibilityData_Call[T]) RunAndReturn

type RuntimeDataGetterFunc added in v0.3.0

type RuntimeDataGetterFunc[T types.CompatibilityComparer[T]] struct {
	mock.Mock
}

RuntimeDataGetterFunc is an autogenerated mock type for the RuntimeDataGetterFunc type

func NewRuntimeDataGetterFunc added in v0.3.0

func NewRuntimeDataGetterFunc[T types.CompatibilityComparer[T]](t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeDataGetterFunc[T]

NewRuntimeDataGetterFunc creates a new instance of RuntimeDataGetterFunc. 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 (*RuntimeDataGetterFunc[T]) EXPECT added in v0.3.0

func (*RuntimeDataGetterFunc[T]) Execute added in v0.3.0

func (_m *RuntimeDataGetterFunc[T]) Execute(ctx context.Context) (T, error)

Execute provides a mock function with given fields: ctx

type RuntimeDataGetterFunc_Execute_Call added in v0.3.0

type RuntimeDataGetterFunc_Execute_Call[T types.CompatibilityComparer[T]] struct {
	*mock.Call
}

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

func (*RuntimeDataGetterFunc_Execute_Call[T]) Return added in v0.3.0

func (*RuntimeDataGetterFunc_Execute_Call[T]) Run added in v0.3.0

func (*RuntimeDataGetterFunc_Execute_Call[T]) RunAndReturn added in v0.3.0

type RuntimeDataGetterFunc_Expecter added in v0.3.0

type RuntimeDataGetterFunc_Expecter[T types.CompatibilityComparer[T]] struct {
	// contains filtered or unexported fields
}

func (*RuntimeDataGetterFunc_Expecter[T]) Execute added in v0.3.0

func (_e *RuntimeDataGetterFunc_Expecter[T]) Execute(ctx interface{}) *RuntimeDataGetterFunc_Execute_Call[T]

Execute is a helper method to define mock.On call

  • ctx context.Context

Jump to

Keyboard shortcuts

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