mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentServer

type AgentServer struct {
	mock.Mock
}

AgentServer is an autogenerated mock type for the AgentServer type

func NewAgentServer

func NewAgentServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *AgentServer

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

func (_m *AgentServer) EXPECT() *AgentServer_Expecter

func (*AgentServer) Start

func (_m *AgentServer) Start(cfg agent.AgentConfig, cmp agent.Computation) error

Start provides a mock function with given fields: cfg, cmp

func (*AgentServer) Stop

func (_m *AgentServer) Stop() error

Stop provides a mock function with given fields:

type AgentServer_Expecter

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

func (*AgentServer_Expecter) Start

func (_e *AgentServer_Expecter) Start(cfg interface{}, cmp interface{}) *AgentServer_Start_Call

Start is a helper method to define mock.On call

  • cfg agent.AgentConfig
  • cmp agent.Computation

func (*AgentServer_Expecter) Stop

Stop is a helper method to define mock.On call

type AgentServer_Start_Call

type AgentServer_Start_Call struct {
	*mock.Call
}

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

func (*AgentServer_Start_Call) Return

func (*AgentServer_Start_Call) Run

func (*AgentServer_Start_Call) RunAndReturn

type AgentServer_Stop_Call

type AgentServer_Stop_Call struct {
	*mock.Call
}

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

func (*AgentServer_Stop_Call) Return

func (*AgentServer_Stop_Call) Run

func (_c *AgentServer_Stop_Call) Run(run func()) *AgentServer_Stop_Call

func (*AgentServer_Stop_Call) RunAndReturn

func (_c *AgentServer_Stop_Call) RunAndReturn(run func() error) *AgentServer_Stop_Call

Jump to

Keyboard shortcuts

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