mocks

package
v1.84.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	mock.Mock
}

Collector is an autogenerated mock type for the Collector type

func NewCollector

func NewCollector(t interface {
	mock.TestingT
	Cleanup(func())
}) *Collector

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

func (*Collector) ID

func (_mock *Collector) ID() string

ID provides a mock function for the type Collector

type Collector_Collect_Call

type Collector_Collect_Call struct {
	*mock.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 (*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

ID is a helper method to define mock.On call

type Collector_ID_Call

type Collector_ID_Call struct {
	*mock.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 (*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

type StateManager struct {
	mock.Mock
}

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

func (_mock *StateManager) Initialized(ctx context.Context, key string) (bool, error)

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

type StateManager_Info_Call struct {
	*mock.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 (*StateManager_Info_Call) Run

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

type StateManager_Initialized_Call struct {
	*mock.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 (*StateManager_Initialized_Call) Run

func (*StateManager_Initialized_Call) RunAndReturn

type StateManager_Read_Call

type StateManager_Read_Call struct {
	*mock.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 (*StateManager_Read_Call) Run

func (*StateManager_Read_Call) RunAndReturn

type StateManager_Reset_Call

type StateManager_Reset_Call struct {
	*mock.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 (*StateManager_Reset_Call) Run

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

type StateManager_Write_Call struct {
	*mock.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 (*StateManager_Write_Call) Run

func (*StateManager_Write_Call) RunAndReturn

Jump to

Keyboard shortcuts

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