mocks

package
v0.2.0-beta6-bridge-tmp Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 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

func (_m *CompatibilityChecker) Check(ctx context.Context, tx db.Querier) error

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 db.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 db.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 db.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 db.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 db.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 KeyValueStorager

type KeyValueStorager struct {
	mock.Mock
}

KeyValueStorager is an autogenerated mock type for the KeyValueStorager type

func NewKeyValueStorager

func NewKeyValueStorager(t interface {
	mock.TestingT
	Cleanup(func())
}) *KeyValueStorager

NewKeyValueStorager creates a new instance of KeyValueStorager. 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 (*KeyValueStorager) EXPECT

func (*KeyValueStorager) GetValue

func (_m *KeyValueStorager) GetValue(tx db.Querier, owner string, key string) (string, error)

GetValue provides a mock function with given fields: tx, owner, key

func (*KeyValueStorager) InsertValue

func (_m *KeyValueStorager) InsertValue(tx db.Querier, owner string, key string, value string) error

InsertValue provides a mock function with given fields: tx, owner, key, value

type KeyValueStorager_Expecter

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

func (*KeyValueStorager_Expecter) GetValue

func (_e *KeyValueStorager_Expecter) GetValue(tx interface{}, owner interface{}, key interface{}) *KeyValueStorager_GetValue_Call

GetValue is a helper method to define mock.On call

  • tx db.Querier
  • owner string
  • key string

func (*KeyValueStorager_Expecter) InsertValue

func (_e *KeyValueStorager_Expecter) InsertValue(tx interface{}, owner interface{}, key interface{}, value interface{}) *KeyValueStorager_InsertValue_Call

InsertValue is a helper method to define mock.On call

  • tx db.Querier
  • owner string
  • key string
  • value string

type KeyValueStorager_GetValue_Call

type KeyValueStorager_GetValue_Call struct {
	*mock.Call
}

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

func (*KeyValueStorager_GetValue_Call) Return

func (*KeyValueStorager_GetValue_Call) Run

func (*KeyValueStorager_GetValue_Call) RunAndReturn

type KeyValueStorager_InsertValue_Call

type KeyValueStorager_InsertValue_Call struct {
	*mock.Call
}

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

func (*KeyValueStorager_InsertValue_Call) Return

func (*KeyValueStorager_InsertValue_Call) Run

func (*KeyValueStorager_InsertValue_Call) 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