Documentation
¶
Index ¶
- type AgentServer
- type AgentServer_Expecter
- type AgentServer_Start_Call
- func (_c *AgentServer_Start_Call) Return(_a0 error) *AgentServer_Start_Call
- func (_c *AgentServer_Start_Call) Run(run func(cfg agent.AgentConfig, cmp agent.Computation)) *AgentServer_Start_Call
- func (_c *AgentServer_Start_Call) RunAndReturn(run func(agent.AgentConfig, agent.Computation) error) *AgentServer_Start_Call
- type AgentServer_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentServer ¶
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 ¶
func (_e *AgentServer_Expecter) Stop() *AgentServer_Stop_Call
Stop is a helper method to define mock.On call
type AgentServer_Start_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 (_c *AgentServer_Start_Call) Return(_a0 error) *AgentServer_Start_Call
func (*AgentServer_Start_Call) Run ¶
func (_c *AgentServer_Start_Call) Run(run func(cfg agent.AgentConfig, cmp agent.Computation)) *AgentServer_Start_Call
func (*AgentServer_Start_Call) RunAndReturn ¶
func (_c *AgentServer_Start_Call) RunAndReturn(run func(agent.AgentConfig, agent.Computation) error) *AgentServer_Start_Call
type AgentServer_Stop_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 (_c *AgentServer_Stop_Call) Return(_a0 error) *AgentServer_Stop_Call
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