Documentation
¶
Index ¶
- type Collector
- type Collector_Collect_Call
- type Collector_Expecter
- type Collector_ID_Call
- type StateManager
- func (_m *StateManager) EXPECT() *StateManager_Expecter
- func (_mock *StateManager) Info(ctx context.Context, key string) string
- func (_mock *StateManager) Initialized(ctx context.Context, key string) (bool, error)
- func (_mock *StateManager) Read(ctx context.Context, key string, state *crafter.VersionedCraftingState) error
- func (_mock *StateManager) Reset(ctx context.Context, key string) error
- func (_mock *StateManager) Write(ctx context.Context, key string, state *crafter.VersionedCraftingState) error
- type StateManager_Expecter
- func (_e *StateManager_Expecter) Info(ctx interface{}, key interface{}) *StateManager_Info_Call
- func (_e *StateManager_Expecter) Initialized(ctx interface{}, key interface{}) *StateManager_Initialized_Call
- func (_e *StateManager_Expecter) Read(ctx interface{}, key interface{}, state interface{}) *StateManager_Read_Call
- func (_e *StateManager_Expecter) Reset(ctx interface{}, key interface{}) *StateManager_Reset_Call
- func (_e *StateManager_Expecter) Write(ctx interface{}, key interface{}, state interface{}) *StateManager_Write_Call
- type StateManager_Info_Call
- func (_c *StateManager_Info_Call) Return(s string) *StateManager_Info_Call
- func (_c *StateManager_Info_Call) Run(run func(ctx context.Context, key string)) *StateManager_Info_Call
- func (_c *StateManager_Info_Call) RunAndReturn(run func(ctx context.Context, key string) string) *StateManager_Info_Call
- type StateManager_Initialized_Call
- func (_c *StateManager_Initialized_Call) Return(b bool, err error) *StateManager_Initialized_Call
- func (_c *StateManager_Initialized_Call) Run(run func(ctx context.Context, key string)) *StateManager_Initialized_Call
- func (_c *StateManager_Initialized_Call) RunAndReturn(run func(ctx context.Context, key string) (bool, error)) *StateManager_Initialized_Call
- type StateManager_Read_Call
- type StateManager_Reset_Call
- func (_c *StateManager_Reset_Call) Return(err error) *StateManager_Reset_Call
- func (_c *StateManager_Reset_Call) Run(run func(ctx context.Context, key string)) *StateManager_Reset_Call
- func (_c *StateManager_Reset_Call) RunAndReturn(run func(ctx context.Context, key string) error) *StateManager_Reset_Call
- type StateManager_Write_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
Collector is an autogenerated mock type for the Collector type
func NewCollector ¶
NewCollector creates a new instance of Collector. 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 (*Collector) Collect ¶
func (_mock *Collector) Collect(ctx context.Context, crafter1 *crafter.Crafter, attestationID string, casBackend *casclient.CASBackend) error
Collect provides a mock function for the type Collector
func (*Collector) EXPECT ¶
func (_m *Collector) EXPECT() *Collector_Expecter
type Collector_Collect_Call ¶
Collector_Collect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Collect'
func (*Collector_Collect_Call) Return ¶
func (_c *Collector_Collect_Call) Return(err error) *Collector_Collect_Call
func (*Collector_Collect_Call) Run ¶
func (_c *Collector_Collect_Call) Run(run func(ctx context.Context, crafter1 *crafter.Crafter, attestationID string, casBackend *casclient.CASBackend)) *Collector_Collect_Call
func (*Collector_Collect_Call) RunAndReturn ¶
func (_c *Collector_Collect_Call) RunAndReturn(run func(ctx context.Context, crafter1 *crafter.Crafter, attestationID string, casBackend *casclient.CASBackend) error) *Collector_Collect_Call
type Collector_Expecter ¶
type Collector_Expecter struct {
// contains filtered or unexported fields
}
func (*Collector_Expecter) Collect ¶
func (_e *Collector_Expecter) Collect(ctx interface{}, crafter1 interface{}, attestationID interface{}, casBackend interface{}) *Collector_Collect_Call
Collect is a helper method to define mock.On call
- ctx context.Context
- crafter1 *crafter.Crafter
- attestationID string
- casBackend *casclient.CASBackend
func (*Collector_Expecter) ID ¶
func (_e *Collector_Expecter) ID() *Collector_ID_Call
ID is a helper method to define mock.On call
type Collector_ID_Call ¶
Collector_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*Collector_ID_Call) Return ¶
func (_c *Collector_ID_Call) Return(s string) *Collector_ID_Call
func (*Collector_ID_Call) Run ¶
func (_c *Collector_ID_Call) Run(run func()) *Collector_ID_Call
func (*Collector_ID_Call) RunAndReturn ¶
func (_c *Collector_ID_Call) RunAndReturn(run func() string) *Collector_ID_Call
type StateManager ¶
StateManager is an autogenerated mock type for the StateManager type
func NewStateManager ¶
func NewStateManager(t interface {
mock.TestingT
Cleanup(func())
}) *StateManager
NewStateManager creates a new instance of StateManager. 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 (*StateManager) EXPECT ¶
func (_m *StateManager) EXPECT() *StateManager_Expecter
func (*StateManager) Info ¶
func (_mock *StateManager) Info(ctx context.Context, key string) string
Info provides a mock function for the type StateManager
func (*StateManager) Initialized ¶
Initialized provides a mock function for the type StateManager
func (*StateManager) Read ¶
func (_mock *StateManager) Read(ctx context.Context, key string, state *crafter.VersionedCraftingState) error
Read provides a mock function for the type StateManager
func (*StateManager) Reset ¶
func (_mock *StateManager) Reset(ctx context.Context, key string) error
Reset provides a mock function for the type StateManager
func (*StateManager) Write ¶
func (_mock *StateManager) Write(ctx context.Context, key string, state *crafter.VersionedCraftingState) error
Write provides a mock function for the type StateManager
type StateManager_Expecter ¶
type StateManager_Expecter struct {
// contains filtered or unexported fields
}
func (*StateManager_Expecter) Info ¶
func (_e *StateManager_Expecter) Info(ctx interface{}, key interface{}) *StateManager_Info_Call
Info is a helper method to define mock.On call
- ctx context.Context
- key string
func (*StateManager_Expecter) Initialized ¶
func (_e *StateManager_Expecter) Initialized(ctx interface{}, key interface{}) *StateManager_Initialized_Call
Initialized is a helper method to define mock.On call
- ctx context.Context
- key string
func (*StateManager_Expecter) Read ¶
func (_e *StateManager_Expecter) Read(ctx interface{}, key interface{}, state interface{}) *StateManager_Read_Call
Read is a helper method to define mock.On call
- ctx context.Context
- key string
- state *crafter.VersionedCraftingState
func (*StateManager_Expecter) Reset ¶
func (_e *StateManager_Expecter) Reset(ctx interface{}, key interface{}) *StateManager_Reset_Call
Reset is a helper method to define mock.On call
- ctx context.Context
- key string
func (*StateManager_Expecter) Write ¶
func (_e *StateManager_Expecter) Write(ctx interface{}, key interface{}, state interface{}) *StateManager_Write_Call
Write is a helper method to define mock.On call
- ctx context.Context
- key string
- state *crafter.VersionedCraftingState
type StateManager_Info_Call ¶
StateManager_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*StateManager_Info_Call) Return ¶
func (_c *StateManager_Info_Call) Return(s string) *StateManager_Info_Call
func (*StateManager_Info_Call) Run ¶
func (_c *StateManager_Info_Call) Run(run func(ctx context.Context, key string)) *StateManager_Info_Call
func (*StateManager_Info_Call) RunAndReturn ¶
func (_c *StateManager_Info_Call) RunAndReturn(run func(ctx context.Context, key string) string) *StateManager_Info_Call
type StateManager_Initialized_Call ¶
StateManager_Initialized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialized'
func (*StateManager_Initialized_Call) Return ¶
func (_c *StateManager_Initialized_Call) Return(b bool, err error) *StateManager_Initialized_Call
func (*StateManager_Initialized_Call) Run ¶
func (_c *StateManager_Initialized_Call) Run(run func(ctx context.Context, key string)) *StateManager_Initialized_Call
func (*StateManager_Initialized_Call) RunAndReturn ¶
func (_c *StateManager_Initialized_Call) RunAndReturn(run func(ctx context.Context, key string) (bool, error)) *StateManager_Initialized_Call
type StateManager_Read_Call ¶
StateManager_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*StateManager_Read_Call) Return ¶
func (_c *StateManager_Read_Call) Return(err error) *StateManager_Read_Call
func (*StateManager_Read_Call) Run ¶
func (_c *StateManager_Read_Call) Run(run func(ctx context.Context, key string, state *crafter.VersionedCraftingState)) *StateManager_Read_Call
func (*StateManager_Read_Call) RunAndReturn ¶
func (_c *StateManager_Read_Call) RunAndReturn(run func(ctx context.Context, key string, state *crafter.VersionedCraftingState) error) *StateManager_Read_Call
type StateManager_Reset_Call ¶
StateManager_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'
func (*StateManager_Reset_Call) Return ¶
func (_c *StateManager_Reset_Call) Return(err error) *StateManager_Reset_Call
func (*StateManager_Reset_Call) Run ¶
func (_c *StateManager_Reset_Call) Run(run func(ctx context.Context, key string)) *StateManager_Reset_Call
func (*StateManager_Reset_Call) RunAndReturn ¶
func (_c *StateManager_Reset_Call) RunAndReturn(run func(ctx context.Context, key string) error) *StateManager_Reset_Call
type StateManager_Write_Call ¶
StateManager_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*StateManager_Write_Call) Return ¶
func (_c *StateManager_Write_Call) Return(err error) *StateManager_Write_Call
func (*StateManager_Write_Call) Run ¶
func (_c *StateManager_Write_Call) Run(run func(ctx context.Context, key string, state *crafter.VersionedCraftingState)) *StateManager_Write_Call
func (*StateManager_Write_Call) RunAndReturn ¶
func (_c *StateManager_Write_Call) RunAndReturn(run func(ctx context.Context, key string, state *crafter.VersionedCraftingState) error) *StateManager_Write_Call