Documentation
¶
Index ¶
- type CompatibilityChecker
- type CompatibilityChecker_Check_Call
- func (_c *CompatibilityChecker_Check_Call) Return(_a0 error) *CompatibilityChecker_Check_Call
- func (_c *CompatibilityChecker_Check_Call) Run(run func(ctx context.Context, tx db.Querier)) *CompatibilityChecker_Check_Call
- func (_c *CompatibilityChecker_Check_Call) RunAndReturn(run func(context.Context, db.Querier) error) *CompatibilityChecker_Check_Call
- type CompatibilityChecker_Expecter
- type CompatibilityDataStorager
- func (_m *CompatibilityDataStorager[T]) EXPECT() *CompatibilityDataStorager_Expecter[T]
- func (_m *CompatibilityDataStorager[T]) GetCompatibilityData(ctx context.Context, tx db.Querier) (bool, T, error)
- func (_m *CompatibilityDataStorager[T]) SetCompatibilityData(ctx context.Context, tx db.Querier, data T) error
- type CompatibilityDataStorager_Expecter
- func (_e *CompatibilityDataStorager_Expecter[T]) GetCompatibilityData(ctx interface{}, tx interface{}) *CompatibilityDataStorager_GetCompatibilityData_Call[T]
- func (_e *CompatibilityDataStorager_Expecter[T]) SetCompatibilityData(ctx interface{}, tx interface{}, data interface{}) *CompatibilityDataStorager_SetCompatibilityData_Call[T]
- type CompatibilityDataStorager_GetCompatibilityData_Call
- func (_c *CompatibilityDataStorager_GetCompatibilityData_Call[T]) Return(_a0 bool, _a1 T, _a2 error) *CompatibilityDataStorager_GetCompatibilityData_Call[T]
- func (_c *CompatibilityDataStorager_GetCompatibilityData_Call[T]) Run(run func(ctx context.Context, tx db.Querier)) *CompatibilityDataStorager_GetCompatibilityData_Call[T]
- func (_c *CompatibilityDataStorager_GetCompatibilityData_Call[T]) RunAndReturn(run func(context.Context, db.Querier) (bool, T, error)) *CompatibilityDataStorager_GetCompatibilityData_Call[T]
- type CompatibilityDataStorager_SetCompatibilityData_Call
- func (_c *CompatibilityDataStorager_SetCompatibilityData_Call[T]) Return(_a0 error) *CompatibilityDataStorager_SetCompatibilityData_Call[T]
- func (_c *CompatibilityDataStorager_SetCompatibilityData_Call[T]) Run(run func(ctx context.Context, tx db.Querier, data T)) *CompatibilityDataStorager_SetCompatibilityData_Call[T]
- func (_c *CompatibilityDataStorager_SetCompatibilityData_Call[T]) RunAndReturn(run func(context.Context, db.Querier, T) error) *CompatibilityDataStorager_SetCompatibilityData_Call[T]
- type KeyValueStorager
- type KeyValueStorager_Expecter
- type KeyValueStorager_GetValue_Call
- func (_c *KeyValueStorager_GetValue_Call) Return(_a0 string, _a1 error) *KeyValueStorager_GetValue_Call
- func (_c *KeyValueStorager_GetValue_Call) Run(run func(tx db.Querier, owner string, key string)) *KeyValueStorager_GetValue_Call
- func (_c *KeyValueStorager_GetValue_Call) RunAndReturn(run func(db.Querier, string, string) (string, error)) *KeyValueStorager_GetValue_Call
- type KeyValueStorager_InsertValue_Call
- func (_c *KeyValueStorager_InsertValue_Call) Return(_a0 error) *KeyValueStorager_InsertValue_Call
- func (_c *KeyValueStorager_InsertValue_Call) Run(run func(tx db.Querier, owner string, key string, value string)) *KeyValueStorager_InsertValue_Call
- func (_c *KeyValueStorager_InsertValue_Call) RunAndReturn(run func(db.Querier, string, string, string) error) *KeyValueStorager_InsertValue_Call
- type RuntimeDataGetterFunc
- type RuntimeDataGetterFunc_Execute_Call
- func (_c *RuntimeDataGetterFunc_Execute_Call[T]) Return(_a0 T, _a1 error) *RuntimeDataGetterFunc_Execute_Call[T]
- func (_c *RuntimeDataGetterFunc_Execute_Call[T]) Run(run func(ctx context.Context)) *RuntimeDataGetterFunc_Execute_Call[T]
- func (_c *RuntimeDataGetterFunc_Execute_Call[T]) RunAndReturn(run func(context.Context) (T, error)) *RuntimeDataGetterFunc_Execute_Call[T]
- type RuntimeDataGetterFunc_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompatibilityChecker ¶
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) EXPECT ¶
func (_m *CompatibilityChecker) EXPECT() *CompatibilityChecker_Expecter
type CompatibilityChecker_Check_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 (_c *CompatibilityChecker_Check_Call) Return(_a0 error) *CompatibilityChecker_Check_Call
func (*CompatibilityChecker_Check_Call) Run ¶
func (_c *CompatibilityChecker_Check_Call) Run(run func(ctx context.Context, tx db.Querier)) *CompatibilityChecker_Check_Call
func (*CompatibilityChecker_Check_Call) RunAndReturn ¶
func (_c *CompatibilityChecker_Check_Call) RunAndReturn(run func(context.Context, db.Querier) error) *CompatibilityChecker_Check_Call
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 ¶
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 (_m *CompatibilityDataStorager[T]) EXPECT() *CompatibilityDataStorager_Expecter[T]
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 ¶
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 (_c *CompatibilityDataStorager_GetCompatibilityData_Call[T]) Return(_a0 bool, _a1 T, _a2 error) *CompatibilityDataStorager_GetCompatibilityData_Call[T]
func (*CompatibilityDataStorager_GetCompatibilityData_Call[T]) Run ¶
func (_c *CompatibilityDataStorager_GetCompatibilityData_Call[T]) Run(run func(ctx context.Context, tx db.Querier)) *CompatibilityDataStorager_GetCompatibilityData_Call[T]
func (*CompatibilityDataStorager_GetCompatibilityData_Call[T]) RunAndReturn ¶
func (_c *CompatibilityDataStorager_GetCompatibilityData_Call[T]) RunAndReturn(run func(context.Context, db.Querier) (bool, T, error)) *CompatibilityDataStorager_GetCompatibilityData_Call[T]
type CompatibilityDataStorager_SetCompatibilityData_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 (_c *CompatibilityDataStorager_SetCompatibilityData_Call[T]) Return(_a0 error) *CompatibilityDataStorager_SetCompatibilityData_Call[T]
func (*CompatibilityDataStorager_SetCompatibilityData_Call[T]) Run ¶
func (_c *CompatibilityDataStorager_SetCompatibilityData_Call[T]) Run(run func(ctx context.Context, tx db.Querier, data T)) *CompatibilityDataStorager_SetCompatibilityData_Call[T]
func (*CompatibilityDataStorager_SetCompatibilityData_Call[T]) RunAndReturn ¶
func (_c *CompatibilityDataStorager_SetCompatibilityData_Call[T]) RunAndReturn(run func(context.Context, db.Querier, T) error) *CompatibilityDataStorager_SetCompatibilityData_Call[T]
type KeyValueStorager ¶
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 (_m *KeyValueStorager) EXPECT() *KeyValueStorager_Expecter
func (*KeyValueStorager) GetValue ¶
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 ¶
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 (_c *KeyValueStorager_GetValue_Call) Return(_a0 string, _a1 error) *KeyValueStorager_GetValue_Call
func (*KeyValueStorager_GetValue_Call) Run ¶
func (_c *KeyValueStorager_GetValue_Call) Run(run func(tx db.Querier, owner string, key string)) *KeyValueStorager_GetValue_Call
func (*KeyValueStorager_GetValue_Call) RunAndReturn ¶
func (_c *KeyValueStorager_GetValue_Call) RunAndReturn(run func(db.Querier, string, string) (string, error)) *KeyValueStorager_GetValue_Call
type KeyValueStorager_InsertValue_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 (_c *KeyValueStorager_InsertValue_Call) Return(_a0 error) *KeyValueStorager_InsertValue_Call
func (*KeyValueStorager_InsertValue_Call) Run ¶
func (_c *KeyValueStorager_InsertValue_Call) Run(run func(tx db.Querier, owner string, key string, value string)) *KeyValueStorager_InsertValue_Call
func (*KeyValueStorager_InsertValue_Call) RunAndReturn ¶
func (_c *KeyValueStorager_InsertValue_Call) RunAndReturn(run func(db.Querier, string, string, string) error) *KeyValueStorager_InsertValue_Call
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 (_m *RuntimeDataGetterFunc[T]) EXPECT() *RuntimeDataGetterFunc_Expecter[T]
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 (_c *RuntimeDataGetterFunc_Execute_Call[T]) Return(_a0 T, _a1 error) *RuntimeDataGetterFunc_Execute_Call[T]
func (*RuntimeDataGetterFunc_Execute_Call[T]) Run ¶ added in v0.3.0
func (_c *RuntimeDataGetterFunc_Execute_Call[T]) Run(run func(ctx context.Context)) *RuntimeDataGetterFunc_Execute_Call[T]
func (*RuntimeDataGetterFunc_Execute_Call[T]) RunAndReturn ¶ added in v0.3.0
func (_c *RuntimeDataGetterFunc_Execute_Call[T]) RunAndReturn(run func(context.Context) (T, error)) *RuntimeDataGetterFunc_Execute_Call[T]
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