Documentation
¶
Index ¶
- type MockGlobalMATLAB
- type MockGlobalMATLAB_Client_Call
- func (_c *MockGlobalMATLAB_Client_Call) Return(mATLABSessionClient entities.MATLABSessionClient, err error) *MockGlobalMATLAB_Client_Call
- func (_c *MockGlobalMATLAB_Client_Call) Run(run func(ctx context.Context, logger entities.Logger)) *MockGlobalMATLAB_Client_Call
- func (_c *MockGlobalMATLAB_Client_Call) RunAndReturn(...) *MockGlobalMATLAB_Client_Call
- type MockGlobalMATLAB_Expecter
- type MockLogger
- func (_mock *MockLogger) Debug(msg string)
- func (_m *MockLogger) EXPECT() *MockLogger_Expecter
- func (_mock *MockLogger) Error(msg string)
- func (_mock *MockLogger) Info(msg string)
- func (_mock *MockLogger) Warn(msg string)
- func (_mock *MockLogger) With(key string, value any) entities.Logger
- func (_mock *MockLogger) WithError(err error) entities.Logger
- type MockLogger_Debug_Call
- type MockLogger_Error_Call
- type MockLogger_Expecter
- func (_e *MockLogger_Expecter) Debug(msg interface{}) *MockLogger_Debug_Call
- func (_e *MockLogger_Expecter) Error(msg interface{}) *MockLogger_Error_Call
- func (_e *MockLogger_Expecter) Info(msg interface{}) *MockLogger_Info_Call
- func (_e *MockLogger_Expecter) Warn(msg interface{}) *MockLogger_Warn_Call
- func (_e *MockLogger_Expecter) With(key interface{}, value interface{}) *MockLogger_With_Call
- func (_e *MockLogger_Expecter) WithError(err interface{}) *MockLogger_WithError_Call
- type MockLogger_Info_Call
- type MockLogger_Warn_Call
- type MockLogger_WithError_Call
- type MockLogger_With_Call
- type MockMATLABManager
- func (_m *MockMATLABManager) EXPECT() *MockMATLABManager_Expecter
- func (_mock *MockMATLABManager) GetMATLABSessionClient(ctx context.Context, sessionLogger entities.Logger, ...) (entities.MATLABSessionClient, error)
- func (_mock *MockMATLABManager) ListEnvironments(ctx context.Context, sessionLogger entities.Logger) []entities.EnvironmentInfo
- func (_mock *MockMATLABManager) StartMATLABSession(ctx context.Context, sessionLogger entities.Logger, ...) (entities.SessionID, error)
- func (_mock *MockMATLABManager) StopMATLABSession(ctx context.Context, sessionLogger entities.Logger, ...) error
- type MockMATLABManager_Expecter
- func (_e *MockMATLABManager_Expecter) GetMATLABSessionClient(ctx interface{}, sessionLogger interface{}, sessionID interface{}) *MockMATLABManager_GetMATLABSessionClient_Call
- func (_e *MockMATLABManager_Expecter) ListEnvironments(ctx interface{}, sessionLogger interface{}) *MockMATLABManager_ListEnvironments_Call
- func (_e *MockMATLABManager_Expecter) StartMATLABSession(ctx interface{}, sessionLogger interface{}, startRequest interface{}) *MockMATLABManager_StartMATLABSession_Call
- func (_e *MockMATLABManager_Expecter) StopMATLABSession(ctx interface{}, sessionLogger interface{}, sessionID interface{}) *MockMATLABManager_StopMATLABSession_Call
- type MockMATLABManager_GetMATLABSessionClient_Call
- func (_c *MockMATLABManager_GetMATLABSessionClient_Call) Return(mATLABSessionClient entities.MATLABSessionClient, err error) *MockMATLABManager_GetMATLABSessionClient_Call
- func (_c *MockMATLABManager_GetMATLABSessionClient_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, ...)) *MockMATLABManager_GetMATLABSessionClient_Call
- func (_c *MockMATLABManager_GetMATLABSessionClient_Call) RunAndReturn(...) *MockMATLABManager_GetMATLABSessionClient_Call
- type MockMATLABManager_ListEnvironments_Call
- func (_c *MockMATLABManager_ListEnvironments_Call) Return(environmentInfos []entities.EnvironmentInfo) *MockMATLABManager_ListEnvironments_Call
- func (_c *MockMATLABManager_ListEnvironments_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger)) *MockMATLABManager_ListEnvironments_Call
- func (_c *MockMATLABManager_ListEnvironments_Call) RunAndReturn(...) *MockMATLABManager_ListEnvironments_Call
- type MockMATLABManager_StartMATLABSession_Call
- func (_c *MockMATLABManager_StartMATLABSession_Call) Return(sessionID entities.SessionID, err error) *MockMATLABManager_StartMATLABSession_Call
- func (_c *MockMATLABManager_StartMATLABSession_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, ...)) *MockMATLABManager_StartMATLABSession_Call
- func (_c *MockMATLABManager_StartMATLABSession_Call) RunAndReturn(...) *MockMATLABManager_StartMATLABSession_Call
- type MockMATLABManager_StopMATLABSession_Call
- func (_c *MockMATLABManager_StopMATLABSession_Call) Return(err error) *MockMATLABManager_StopMATLABSession_Call
- func (_c *MockMATLABManager_StopMATLABSession_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, ...)) *MockMATLABManager_StopMATLABSession_Call
- func (_c *MockMATLABManager_StopMATLABSession_Call) RunAndReturn(run func(ctx context.Context, sessionLogger entities.Logger, ...) error) *MockMATLABManager_StopMATLABSession_Call
- type MockMATLABSessionClient
- func (_m *MockMATLABSessionClient) EXPECT() *MockMATLABSessionClient_Expecter
- func (_mock *MockMATLABSessionClient) Eval(ctx context.Context, sessionLogger entities.Logger, ...) (entities.EvalResponse, error)
- func (_mock *MockMATLABSessionClient) EvalWithCapture(ctx context.Context, logger entities.Logger, input entities.EvalRequest) (entities.EvalResponse, error)
- func (_mock *MockMATLABSessionClient) FEval(ctx context.Context, sessionLogger entities.Logger, ...) (entities.FEvalResponse, error)
- func (_mock *MockMATLABSessionClient) Ping(ctx context.Context, sessionLogger entities.Logger) entities.PingResponse
- type MockMATLABSessionClient_EvalWithCapture_Call
- func (_c *MockMATLABSessionClient_EvalWithCapture_Call) Return(evalResponse entities.EvalResponse, err error) *MockMATLABSessionClient_EvalWithCapture_Call
- func (_c *MockMATLABSessionClient_EvalWithCapture_Call) Run(...) *MockMATLABSessionClient_EvalWithCapture_Call
- func (_c *MockMATLABSessionClient_EvalWithCapture_Call) RunAndReturn(...) *MockMATLABSessionClient_EvalWithCapture_Call
- type MockMATLABSessionClient_Eval_Call
- func (_c *MockMATLABSessionClient_Eval_Call) Return(evalResponse entities.EvalResponse, err error) *MockMATLABSessionClient_Eval_Call
- func (_c *MockMATLABSessionClient_Eval_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, ...)) *MockMATLABSessionClient_Eval_Call
- func (_c *MockMATLABSessionClient_Eval_Call) RunAndReturn(...) *MockMATLABSessionClient_Eval_Call
- type MockMATLABSessionClient_Expecter
- func (_e *MockMATLABSessionClient_Expecter) Eval(ctx interface{}, sessionLogger interface{}, request interface{}) *MockMATLABSessionClient_Eval_Call
- func (_e *MockMATLABSessionClient_Expecter) EvalWithCapture(ctx interface{}, logger interface{}, input interface{}) *MockMATLABSessionClient_EvalWithCapture_Call
- func (_e *MockMATLABSessionClient_Expecter) FEval(ctx interface{}, sessionLogger interface{}, request interface{}) *MockMATLABSessionClient_FEval_Call
- func (_e *MockMATLABSessionClient_Expecter) Ping(ctx interface{}, sessionLogger interface{}) *MockMATLABSessionClient_Ping_Call
- type MockMATLABSessionClient_FEval_Call
- func (_c *MockMATLABSessionClient_FEval_Call) Return(fEvalResponse entities.FEvalResponse, err error) *MockMATLABSessionClient_FEval_Call
- func (_c *MockMATLABSessionClient_FEval_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, ...)) *MockMATLABSessionClient_FEval_Call
- func (_c *MockMATLABSessionClient_FEval_Call) RunAndReturn(...) *MockMATLABSessionClient_FEval_Call
- type MockMATLABSessionClient_Ping_Call
- func (_c *MockMATLABSessionClient_Ping_Call) Return(pingResponse entities.PingResponse) *MockMATLABSessionClient_Ping_Call
- func (_c *MockMATLABSessionClient_Ping_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger)) *MockMATLABSessionClient_Ping_Call
- func (_c *MockMATLABSessionClient_Ping_Call) RunAndReturn(...) *MockMATLABSessionClient_Ping_Call
- type MockParameter
- func (_m *MockParameter) EXPECT() *MockParameter_Expecter
- func (_mock *MockParameter) GetActive() bool
- func (_mock *MockParameter) GetDefaultValue() any
- func (_mock *MockParameter) GetDescription() string
- func (_mock *MockParameter) GetEnvVarName() string
- func (_mock *MockParameter) GetFlagName() string
- func (_mock *MockParameter) GetHiddenFlag() bool
- func (_mock *MockParameter) GetID() string
- func (_mock *MockParameter) GetPIISafe() bool
- func (_mock *MockParameter) GetRecordToLog() bool
- type MockParameter_Expecter
- func (_e *MockParameter_Expecter) GetActive() *MockParameter_GetActive_Call
- func (_e *MockParameter_Expecter) GetDefaultValue() *MockParameter_GetDefaultValue_Call
- func (_e *MockParameter_Expecter) GetDescription() *MockParameter_GetDescription_Call
- func (_e *MockParameter_Expecter) GetEnvVarName() *MockParameter_GetEnvVarName_Call
- func (_e *MockParameter_Expecter) GetFlagName() *MockParameter_GetFlagName_Call
- func (_e *MockParameter_Expecter) GetHiddenFlag() *MockParameter_GetHiddenFlag_Call
- func (_e *MockParameter_Expecter) GetID() *MockParameter_GetID_Call
- func (_e *MockParameter_Expecter) GetPIISafe() *MockParameter_GetPIISafe_Call
- func (_e *MockParameter_Expecter) GetRecordToLog() *MockParameter_GetRecordToLog_Call
- type MockParameter_GetActive_Call
- type MockParameter_GetDefaultValue_Call
- func (_c *MockParameter_GetDefaultValue_Call) Return(v any) *MockParameter_GetDefaultValue_Call
- func (_c *MockParameter_GetDefaultValue_Call) Run(run func()) *MockParameter_GetDefaultValue_Call
- func (_c *MockParameter_GetDefaultValue_Call) RunAndReturn(run func() any) *MockParameter_GetDefaultValue_Call
- type MockParameter_GetDescription_Call
- func (_c *MockParameter_GetDescription_Call) Return(s string) *MockParameter_GetDescription_Call
- func (_c *MockParameter_GetDescription_Call) Run(run func()) *MockParameter_GetDescription_Call
- func (_c *MockParameter_GetDescription_Call) RunAndReturn(run func() string) *MockParameter_GetDescription_Call
- type MockParameter_GetEnvVarName_Call
- type MockParameter_GetFlagName_Call
- type MockParameter_GetHiddenFlag_Call
- type MockParameter_GetID_Call
- type MockParameter_GetPIISafe_Call
- type MockParameter_GetRecordToLog_Call
- func (_c *MockParameter_GetRecordToLog_Call) Return(b bool) *MockParameter_GetRecordToLog_Call
- func (_c *MockParameter_GetRecordToLog_Call) Run(run func()) *MockParameter_GetRecordToLog_Call
- func (_c *MockParameter_GetRecordToLog_Call) RunAndReturn(run func() bool) *MockParameter_GetRecordToLog_Call
- type MockSessionDetails
- type MockSessionDetails_Expecter
- type MockSessionDetails_interfacelock_Call
- func (_c *MockSessionDetails_interfacelock_Call) Return() *MockSessionDetails_interfacelock_Call
- func (_c *MockSessionDetails_interfacelock_Call) Run(run func()) *MockSessionDetails_interfacelock_Call
- func (_c *MockSessionDetails_interfacelock_Call) RunAndReturn(run func()) *MockSessionDetails_interfacelock_Call
- type MockWriter
- type MockWriter_Expecter
- type MockWriter_Write_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGlobalMATLAB ¶
MockGlobalMATLAB is an autogenerated mock type for the GlobalMATLAB type
func NewMockGlobalMATLAB ¶
func NewMockGlobalMATLAB(t interface {
mock.TestingT
Cleanup(func())
}) *MockGlobalMATLAB
NewMockGlobalMATLAB creates a new instance of MockGlobalMATLAB. 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 (*MockGlobalMATLAB) Client ¶
func (_mock *MockGlobalMATLAB) Client(ctx context.Context, logger entities.Logger) (entities.MATLABSessionClient, error)
Client provides a mock function for the type MockGlobalMATLAB
func (*MockGlobalMATLAB) EXPECT ¶
func (_m *MockGlobalMATLAB) EXPECT() *MockGlobalMATLAB_Expecter
type MockGlobalMATLAB_Client_Call ¶
MockGlobalMATLAB_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'
func (*MockGlobalMATLAB_Client_Call) Return ¶
func (_c *MockGlobalMATLAB_Client_Call) Return(mATLABSessionClient entities.MATLABSessionClient, err error) *MockGlobalMATLAB_Client_Call
func (*MockGlobalMATLAB_Client_Call) Run ¶
func (_c *MockGlobalMATLAB_Client_Call) Run(run func(ctx context.Context, logger entities.Logger)) *MockGlobalMATLAB_Client_Call
func (*MockGlobalMATLAB_Client_Call) RunAndReturn ¶
func (_c *MockGlobalMATLAB_Client_Call) RunAndReturn(run func(ctx context.Context, logger entities.Logger) (entities.MATLABSessionClient, error)) *MockGlobalMATLAB_Client_Call
type MockGlobalMATLAB_Expecter ¶
type MockGlobalMATLAB_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGlobalMATLAB_Expecter) Client ¶
func (_e *MockGlobalMATLAB_Expecter) Client(ctx interface{}, logger interface{}) *MockGlobalMATLAB_Client_Call
Client is a helper method to define mock.On call
- ctx context.Context
- logger entities.Logger
type MockLogger ¶
MockLogger is an autogenerated mock type for the Logger type
func NewMockLogger ¶
func NewMockLogger(t interface {
mock.TestingT
Cleanup(func())
}) *MockLogger
NewMockLogger creates a new instance of MockLogger. 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 (*MockLogger) Debug ¶
func (_mock *MockLogger) Debug(msg string)
Debug provides a mock function for the type MockLogger
func (*MockLogger) EXPECT ¶
func (_m *MockLogger) EXPECT() *MockLogger_Expecter
func (*MockLogger) Error ¶
func (_mock *MockLogger) Error(msg string)
Error provides a mock function for the type MockLogger
func (*MockLogger) Info ¶
func (_mock *MockLogger) Info(msg string)
Info provides a mock function for the type MockLogger
func (*MockLogger) Warn ¶
func (_mock *MockLogger) Warn(msg string)
Warn provides a mock function for the type MockLogger
type MockLogger_Debug_Call ¶
MockLogger_Debug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debug'
func (*MockLogger_Debug_Call) Return ¶
func (_c *MockLogger_Debug_Call) Return() *MockLogger_Debug_Call
func (*MockLogger_Debug_Call) Run ¶
func (_c *MockLogger_Debug_Call) Run(run func(msg string)) *MockLogger_Debug_Call
func (*MockLogger_Debug_Call) RunAndReturn ¶
func (_c *MockLogger_Debug_Call) RunAndReturn(run func(msg string)) *MockLogger_Debug_Call
type MockLogger_Error_Call ¶
MockLogger_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*MockLogger_Error_Call) Return ¶
func (_c *MockLogger_Error_Call) Return() *MockLogger_Error_Call
func (*MockLogger_Error_Call) Run ¶
func (_c *MockLogger_Error_Call) Run(run func(msg string)) *MockLogger_Error_Call
func (*MockLogger_Error_Call) RunAndReturn ¶
func (_c *MockLogger_Error_Call) RunAndReturn(run func(msg string)) *MockLogger_Error_Call
type MockLogger_Expecter ¶
type MockLogger_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLogger_Expecter) Debug ¶
func (_e *MockLogger_Expecter) Debug(msg interface{}) *MockLogger_Debug_Call
Debug is a helper method to define mock.On call
- msg string
func (*MockLogger_Expecter) Error ¶
func (_e *MockLogger_Expecter) Error(msg interface{}) *MockLogger_Error_Call
Error is a helper method to define mock.On call
- msg string
func (*MockLogger_Expecter) Info ¶
func (_e *MockLogger_Expecter) Info(msg interface{}) *MockLogger_Info_Call
Info is a helper method to define mock.On call
- msg string
func (*MockLogger_Expecter) Warn ¶
func (_e *MockLogger_Expecter) Warn(msg interface{}) *MockLogger_Warn_Call
Warn is a helper method to define mock.On call
- msg string
func (*MockLogger_Expecter) With ¶
func (_e *MockLogger_Expecter) With(key interface{}, value interface{}) *MockLogger_With_Call
With is a helper method to define mock.On call
- key string
- value any
func (*MockLogger_Expecter) WithError ¶
func (_e *MockLogger_Expecter) WithError(err interface{}) *MockLogger_WithError_Call
WithError is a helper method to define mock.On call
- err error
type MockLogger_Info_Call ¶
MockLogger_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*MockLogger_Info_Call) Return ¶
func (_c *MockLogger_Info_Call) Return() *MockLogger_Info_Call
func (*MockLogger_Info_Call) Run ¶
func (_c *MockLogger_Info_Call) Run(run func(msg string)) *MockLogger_Info_Call
func (*MockLogger_Info_Call) RunAndReturn ¶
func (_c *MockLogger_Info_Call) RunAndReturn(run func(msg string)) *MockLogger_Info_Call
type MockLogger_Warn_Call ¶
MockLogger_Warn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warn'
func (*MockLogger_Warn_Call) Return ¶
func (_c *MockLogger_Warn_Call) Return() *MockLogger_Warn_Call
func (*MockLogger_Warn_Call) Run ¶
func (_c *MockLogger_Warn_Call) Run(run func(msg string)) *MockLogger_Warn_Call
func (*MockLogger_Warn_Call) RunAndReturn ¶
func (_c *MockLogger_Warn_Call) RunAndReturn(run func(msg string)) *MockLogger_Warn_Call
type MockLogger_WithError_Call ¶
MockLogger_WithError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithError'
func (*MockLogger_WithError_Call) Return ¶
func (_c *MockLogger_WithError_Call) Return(logger entities.Logger) *MockLogger_WithError_Call
func (*MockLogger_WithError_Call) Run ¶
func (_c *MockLogger_WithError_Call) Run(run func(err error)) *MockLogger_WithError_Call
func (*MockLogger_WithError_Call) RunAndReturn ¶
func (_c *MockLogger_WithError_Call) RunAndReturn(run func(err error) entities.Logger) *MockLogger_WithError_Call
type MockLogger_With_Call ¶
MockLogger_With_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'With'
func (*MockLogger_With_Call) Return ¶
func (_c *MockLogger_With_Call) Return(logger entities.Logger) *MockLogger_With_Call
func (*MockLogger_With_Call) Run ¶
func (_c *MockLogger_With_Call) Run(run func(key string, value any)) *MockLogger_With_Call
func (*MockLogger_With_Call) RunAndReturn ¶
func (_c *MockLogger_With_Call) RunAndReturn(run func(key string, value any) entities.Logger) *MockLogger_With_Call
type MockMATLABManager ¶
MockMATLABManager is an autogenerated mock type for the MATLABManager type
func NewMockMATLABManager ¶
func NewMockMATLABManager(t interface {
mock.TestingT
Cleanup(func())
}) *MockMATLABManager
NewMockMATLABManager creates a new instance of MockMATLABManager. 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 (*MockMATLABManager) EXPECT ¶
func (_m *MockMATLABManager) EXPECT() *MockMATLABManager_Expecter
func (*MockMATLABManager) GetMATLABSessionClient ¶
func (_mock *MockMATLABManager) GetMATLABSessionClient(ctx context.Context, sessionLogger entities.Logger, sessionID entities.SessionID) (entities.MATLABSessionClient, error)
GetMATLABSessionClient provides a mock function for the type MockMATLABManager
func (*MockMATLABManager) ListEnvironments ¶
func (_mock *MockMATLABManager) ListEnvironments(ctx context.Context, sessionLogger entities.Logger) []entities.EnvironmentInfo
ListEnvironments provides a mock function for the type MockMATLABManager
func (*MockMATLABManager) StartMATLABSession ¶
func (_mock *MockMATLABManager) StartMATLABSession(ctx context.Context, sessionLogger entities.Logger, startRequest entities.SessionDetails) (entities.SessionID, error)
StartMATLABSession provides a mock function for the type MockMATLABManager
func (*MockMATLABManager) StopMATLABSession ¶
func (_mock *MockMATLABManager) StopMATLABSession(ctx context.Context, sessionLogger entities.Logger, sessionID entities.SessionID) error
StopMATLABSession provides a mock function for the type MockMATLABManager
type MockMATLABManager_Expecter ¶
type MockMATLABManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMATLABManager_Expecter) GetMATLABSessionClient ¶
func (_e *MockMATLABManager_Expecter) GetMATLABSessionClient(ctx interface{}, sessionLogger interface{}, sessionID interface{}) *MockMATLABManager_GetMATLABSessionClient_Call
GetMATLABSessionClient is a helper method to define mock.On call
- ctx context.Context
- sessionLogger entities.Logger
- sessionID entities.SessionID
func (*MockMATLABManager_Expecter) ListEnvironments ¶
func (_e *MockMATLABManager_Expecter) ListEnvironments(ctx interface{}, sessionLogger interface{}) *MockMATLABManager_ListEnvironments_Call
ListEnvironments is a helper method to define mock.On call
- ctx context.Context
- sessionLogger entities.Logger
func (*MockMATLABManager_Expecter) StartMATLABSession ¶
func (_e *MockMATLABManager_Expecter) StartMATLABSession(ctx interface{}, sessionLogger interface{}, startRequest interface{}) *MockMATLABManager_StartMATLABSession_Call
StartMATLABSession is a helper method to define mock.On call
- ctx context.Context
- sessionLogger entities.Logger
- startRequest entities.SessionDetails
func (*MockMATLABManager_Expecter) StopMATLABSession ¶
func (_e *MockMATLABManager_Expecter) StopMATLABSession(ctx interface{}, sessionLogger interface{}, sessionID interface{}) *MockMATLABManager_StopMATLABSession_Call
StopMATLABSession is a helper method to define mock.On call
- ctx context.Context
- sessionLogger entities.Logger
- sessionID entities.SessionID
type MockMATLABManager_GetMATLABSessionClient_Call ¶
MockMATLABManager_GetMATLABSessionClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMATLABSessionClient'
func (*MockMATLABManager_GetMATLABSessionClient_Call) Return ¶
func (_c *MockMATLABManager_GetMATLABSessionClient_Call) Return(mATLABSessionClient entities.MATLABSessionClient, err error) *MockMATLABManager_GetMATLABSessionClient_Call
func (*MockMATLABManager_GetMATLABSessionClient_Call) Run ¶
func (_c *MockMATLABManager_GetMATLABSessionClient_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, sessionID entities.SessionID)) *MockMATLABManager_GetMATLABSessionClient_Call
func (*MockMATLABManager_GetMATLABSessionClient_Call) RunAndReturn ¶
func (_c *MockMATLABManager_GetMATLABSessionClient_Call) RunAndReturn(run func(ctx context.Context, sessionLogger entities.Logger, sessionID entities.SessionID) (entities.MATLABSessionClient, error)) *MockMATLABManager_GetMATLABSessionClient_Call
type MockMATLABManager_ListEnvironments_Call ¶
MockMATLABManager_ListEnvironments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEnvironments'
func (*MockMATLABManager_ListEnvironments_Call) Return ¶
func (_c *MockMATLABManager_ListEnvironments_Call) Return(environmentInfos []entities.EnvironmentInfo) *MockMATLABManager_ListEnvironments_Call
func (*MockMATLABManager_ListEnvironments_Call) Run ¶
func (_c *MockMATLABManager_ListEnvironments_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger)) *MockMATLABManager_ListEnvironments_Call
func (*MockMATLABManager_ListEnvironments_Call) RunAndReturn ¶
func (_c *MockMATLABManager_ListEnvironments_Call) RunAndReturn(run func(ctx context.Context, sessionLogger entities.Logger) []entities.EnvironmentInfo) *MockMATLABManager_ListEnvironments_Call
type MockMATLABManager_StartMATLABSession_Call ¶
MockMATLABManager_StartMATLABSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartMATLABSession'
func (*MockMATLABManager_StartMATLABSession_Call) Return ¶
func (_c *MockMATLABManager_StartMATLABSession_Call) Return(sessionID entities.SessionID, err error) *MockMATLABManager_StartMATLABSession_Call
func (*MockMATLABManager_StartMATLABSession_Call) Run ¶
func (_c *MockMATLABManager_StartMATLABSession_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, startRequest entities.SessionDetails)) *MockMATLABManager_StartMATLABSession_Call
func (*MockMATLABManager_StartMATLABSession_Call) RunAndReturn ¶
func (_c *MockMATLABManager_StartMATLABSession_Call) RunAndReturn(run func(ctx context.Context, sessionLogger entities.Logger, startRequest entities.SessionDetails) (entities.SessionID, error)) *MockMATLABManager_StartMATLABSession_Call
type MockMATLABManager_StopMATLABSession_Call ¶
MockMATLABManager_StopMATLABSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopMATLABSession'
func (*MockMATLABManager_StopMATLABSession_Call) Return ¶
func (_c *MockMATLABManager_StopMATLABSession_Call) Return(err error) *MockMATLABManager_StopMATLABSession_Call
func (*MockMATLABManager_StopMATLABSession_Call) Run ¶
func (_c *MockMATLABManager_StopMATLABSession_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, sessionID entities.SessionID)) *MockMATLABManager_StopMATLABSession_Call
func (*MockMATLABManager_StopMATLABSession_Call) RunAndReturn ¶
func (_c *MockMATLABManager_StopMATLABSession_Call) RunAndReturn(run func(ctx context.Context, sessionLogger entities.Logger, sessionID entities.SessionID) error) *MockMATLABManager_StopMATLABSession_Call
type MockMATLABSessionClient ¶
MockMATLABSessionClient is an autogenerated mock type for the MATLABSessionClient type
func NewMockMATLABSessionClient ¶
func NewMockMATLABSessionClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockMATLABSessionClient
NewMockMATLABSessionClient creates a new instance of MockMATLABSessionClient. 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 (*MockMATLABSessionClient) EXPECT ¶
func (_m *MockMATLABSessionClient) EXPECT() *MockMATLABSessionClient_Expecter
func (*MockMATLABSessionClient) Eval ¶
func (_mock *MockMATLABSessionClient) Eval(ctx context.Context, sessionLogger entities.Logger, request entities.EvalRequest) (entities.EvalResponse, error)
Eval provides a mock function for the type MockMATLABSessionClient
func (*MockMATLABSessionClient) EvalWithCapture ¶
func (_mock *MockMATLABSessionClient) EvalWithCapture(ctx context.Context, logger entities.Logger, input entities.EvalRequest) (entities.EvalResponse, error)
EvalWithCapture provides a mock function for the type MockMATLABSessionClient
func (*MockMATLABSessionClient) FEval ¶
func (_mock *MockMATLABSessionClient) FEval(ctx context.Context, sessionLogger entities.Logger, request entities.FEvalRequest) (entities.FEvalResponse, error)
FEval provides a mock function for the type MockMATLABSessionClient
func (*MockMATLABSessionClient) Ping ¶ added in v0.3.0
func (_mock *MockMATLABSessionClient) Ping(ctx context.Context, sessionLogger entities.Logger) entities.PingResponse
Ping provides a mock function for the type MockMATLABSessionClient
type MockMATLABSessionClient_EvalWithCapture_Call ¶
MockMATLABSessionClient_EvalWithCapture_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvalWithCapture'
func (*MockMATLABSessionClient_EvalWithCapture_Call) Return ¶
func (_c *MockMATLABSessionClient_EvalWithCapture_Call) Return(evalResponse entities.EvalResponse, err error) *MockMATLABSessionClient_EvalWithCapture_Call
func (*MockMATLABSessionClient_EvalWithCapture_Call) Run ¶
func (_c *MockMATLABSessionClient_EvalWithCapture_Call) Run(run func(ctx context.Context, logger entities.Logger, input entities.EvalRequest)) *MockMATLABSessionClient_EvalWithCapture_Call
func (*MockMATLABSessionClient_EvalWithCapture_Call) RunAndReturn ¶
func (_c *MockMATLABSessionClient_EvalWithCapture_Call) RunAndReturn(run func(ctx context.Context, logger entities.Logger, input entities.EvalRequest) (entities.EvalResponse, error)) *MockMATLABSessionClient_EvalWithCapture_Call
type MockMATLABSessionClient_Eval_Call ¶
MockMATLABSessionClient_Eval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Eval'
func (*MockMATLABSessionClient_Eval_Call) Return ¶
func (_c *MockMATLABSessionClient_Eval_Call) Return(evalResponse entities.EvalResponse, err error) *MockMATLABSessionClient_Eval_Call
func (*MockMATLABSessionClient_Eval_Call) Run ¶
func (_c *MockMATLABSessionClient_Eval_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, request entities.EvalRequest)) *MockMATLABSessionClient_Eval_Call
func (*MockMATLABSessionClient_Eval_Call) RunAndReturn ¶
func (_c *MockMATLABSessionClient_Eval_Call) RunAndReturn(run func(ctx context.Context, sessionLogger entities.Logger, request entities.EvalRequest) (entities.EvalResponse, error)) *MockMATLABSessionClient_Eval_Call
type MockMATLABSessionClient_Expecter ¶
type MockMATLABSessionClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMATLABSessionClient_Expecter) Eval ¶
func (_e *MockMATLABSessionClient_Expecter) Eval(ctx interface{}, sessionLogger interface{}, request interface{}) *MockMATLABSessionClient_Eval_Call
Eval is a helper method to define mock.On call
- ctx context.Context
- sessionLogger entities.Logger
- request entities.EvalRequest
func (*MockMATLABSessionClient_Expecter) EvalWithCapture ¶
func (_e *MockMATLABSessionClient_Expecter) EvalWithCapture(ctx interface{}, logger interface{}, input interface{}) *MockMATLABSessionClient_EvalWithCapture_Call
EvalWithCapture is a helper method to define mock.On call
- ctx context.Context
- logger entities.Logger
- input entities.EvalRequest
func (*MockMATLABSessionClient_Expecter) FEval ¶
func (_e *MockMATLABSessionClient_Expecter) FEval(ctx interface{}, sessionLogger interface{}, request interface{}) *MockMATLABSessionClient_FEval_Call
FEval is a helper method to define mock.On call
- ctx context.Context
- sessionLogger entities.Logger
- request entities.FEvalRequest
func (*MockMATLABSessionClient_Expecter) Ping ¶ added in v0.3.0
func (_e *MockMATLABSessionClient_Expecter) Ping(ctx interface{}, sessionLogger interface{}) *MockMATLABSessionClient_Ping_Call
Ping is a helper method to define mock.On call
- ctx context.Context
- sessionLogger entities.Logger
type MockMATLABSessionClient_FEval_Call ¶
MockMATLABSessionClient_FEval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FEval'
func (*MockMATLABSessionClient_FEval_Call) Return ¶
func (_c *MockMATLABSessionClient_FEval_Call) Return(fEvalResponse entities.FEvalResponse, err error) *MockMATLABSessionClient_FEval_Call
func (*MockMATLABSessionClient_FEval_Call) Run ¶
func (_c *MockMATLABSessionClient_FEval_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger, request entities.FEvalRequest)) *MockMATLABSessionClient_FEval_Call
func (*MockMATLABSessionClient_FEval_Call) RunAndReturn ¶
func (_c *MockMATLABSessionClient_FEval_Call) RunAndReturn(run func(ctx context.Context, sessionLogger entities.Logger, request entities.FEvalRequest) (entities.FEvalResponse, error)) *MockMATLABSessionClient_FEval_Call
type MockMATLABSessionClient_Ping_Call ¶ added in v0.3.0
MockMATLABSessionClient_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'
func (*MockMATLABSessionClient_Ping_Call) Return ¶ added in v0.3.0
func (_c *MockMATLABSessionClient_Ping_Call) Return(pingResponse entities.PingResponse) *MockMATLABSessionClient_Ping_Call
func (*MockMATLABSessionClient_Ping_Call) Run ¶ added in v0.3.0
func (_c *MockMATLABSessionClient_Ping_Call) Run(run func(ctx context.Context, sessionLogger entities.Logger)) *MockMATLABSessionClient_Ping_Call
func (*MockMATLABSessionClient_Ping_Call) RunAndReturn ¶ added in v0.3.0
func (_c *MockMATLABSessionClient_Ping_Call) RunAndReturn(run func(ctx context.Context, sessionLogger entities.Logger) entities.PingResponse) *MockMATLABSessionClient_Ping_Call
type MockParameter ¶ added in v0.5.1
MockParameter is an autogenerated mock type for the Parameter type
func NewMockParameter ¶ added in v0.5.1
func NewMockParameter(t interface {
mock.TestingT
Cleanup(func())
}) *MockParameter
NewMockParameter creates a new instance of MockParameter. 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 (*MockParameter) EXPECT ¶ added in v0.5.1
func (_m *MockParameter) EXPECT() *MockParameter_Expecter
func (*MockParameter) GetActive ¶ added in v0.5.1
func (_mock *MockParameter) GetActive() bool
GetActive provides a mock function for the type MockParameter
func (*MockParameter) GetDefaultValue ¶ added in v0.5.1
func (_mock *MockParameter) GetDefaultValue() any
GetDefaultValue provides a mock function for the type MockParameter
func (*MockParameter) GetDescription ¶ added in v0.5.1
func (_mock *MockParameter) GetDescription() string
GetDescription provides a mock function for the type MockParameter
func (*MockParameter) GetEnvVarName ¶ added in v0.5.1
func (_mock *MockParameter) GetEnvVarName() string
GetEnvVarName provides a mock function for the type MockParameter
func (*MockParameter) GetFlagName ¶ added in v0.5.1
func (_mock *MockParameter) GetFlagName() string
GetFlagName provides a mock function for the type MockParameter
func (*MockParameter) GetHiddenFlag ¶ added in v0.5.1
func (_mock *MockParameter) GetHiddenFlag() bool
GetHiddenFlag provides a mock function for the type MockParameter
func (*MockParameter) GetID ¶ added in v0.5.1
func (_mock *MockParameter) GetID() string
GetID provides a mock function for the type MockParameter
func (*MockParameter) GetPIISafe ¶ added in v0.7.0
func (_mock *MockParameter) GetPIISafe() bool
GetPIISafe provides a mock function for the type MockParameter
func (*MockParameter) GetRecordToLog ¶ added in v0.5.1
func (_mock *MockParameter) GetRecordToLog() bool
GetRecordToLog provides a mock function for the type MockParameter
type MockParameter_Expecter ¶ added in v0.5.1
type MockParameter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockParameter_Expecter) GetActive ¶ added in v0.5.1
func (_e *MockParameter_Expecter) GetActive() *MockParameter_GetActive_Call
GetActive is a helper method to define mock.On call
func (*MockParameter_Expecter) GetDefaultValue ¶ added in v0.5.1
func (_e *MockParameter_Expecter) GetDefaultValue() *MockParameter_GetDefaultValue_Call
GetDefaultValue is a helper method to define mock.On call
func (*MockParameter_Expecter) GetDescription ¶ added in v0.5.1
func (_e *MockParameter_Expecter) GetDescription() *MockParameter_GetDescription_Call
GetDescription is a helper method to define mock.On call
func (*MockParameter_Expecter) GetEnvVarName ¶ added in v0.5.1
func (_e *MockParameter_Expecter) GetEnvVarName() *MockParameter_GetEnvVarName_Call
GetEnvVarName is a helper method to define mock.On call
func (*MockParameter_Expecter) GetFlagName ¶ added in v0.5.1
func (_e *MockParameter_Expecter) GetFlagName() *MockParameter_GetFlagName_Call
GetFlagName is a helper method to define mock.On call
func (*MockParameter_Expecter) GetHiddenFlag ¶ added in v0.5.1
func (_e *MockParameter_Expecter) GetHiddenFlag() *MockParameter_GetHiddenFlag_Call
GetHiddenFlag is a helper method to define mock.On call
func (*MockParameter_Expecter) GetID ¶ added in v0.5.1
func (_e *MockParameter_Expecter) GetID() *MockParameter_GetID_Call
GetID is a helper method to define mock.On call
func (*MockParameter_Expecter) GetPIISafe ¶ added in v0.7.0
func (_e *MockParameter_Expecter) GetPIISafe() *MockParameter_GetPIISafe_Call
GetPIISafe is a helper method to define mock.On call
func (*MockParameter_Expecter) GetRecordToLog ¶ added in v0.5.1
func (_e *MockParameter_Expecter) GetRecordToLog() *MockParameter_GetRecordToLog_Call
GetRecordToLog is a helper method to define mock.On call
type MockParameter_GetActive_Call ¶ added in v0.5.1
MockParameter_GetActive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActive'
func (*MockParameter_GetActive_Call) Return ¶ added in v0.5.1
func (_c *MockParameter_GetActive_Call) Return(b bool) *MockParameter_GetActive_Call
func (*MockParameter_GetActive_Call) Run ¶ added in v0.5.1
func (_c *MockParameter_GetActive_Call) Run(run func()) *MockParameter_GetActive_Call
func (*MockParameter_GetActive_Call) RunAndReturn ¶ added in v0.5.1
func (_c *MockParameter_GetActive_Call) RunAndReturn(run func() bool) *MockParameter_GetActive_Call
type MockParameter_GetDefaultValue_Call ¶ added in v0.5.1
MockParameter_GetDefaultValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultValue'
func (*MockParameter_GetDefaultValue_Call) Return ¶ added in v0.5.1
func (_c *MockParameter_GetDefaultValue_Call) Return(v any) *MockParameter_GetDefaultValue_Call
func (*MockParameter_GetDefaultValue_Call) Run ¶ added in v0.5.1
func (_c *MockParameter_GetDefaultValue_Call) Run(run func()) *MockParameter_GetDefaultValue_Call
func (*MockParameter_GetDefaultValue_Call) RunAndReturn ¶ added in v0.5.1
func (_c *MockParameter_GetDefaultValue_Call) RunAndReturn(run func() any) *MockParameter_GetDefaultValue_Call
type MockParameter_GetDescription_Call ¶ added in v0.5.1
MockParameter_GetDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDescription'
func (*MockParameter_GetDescription_Call) Return ¶ added in v0.5.1
func (_c *MockParameter_GetDescription_Call) Return(s string) *MockParameter_GetDescription_Call
func (*MockParameter_GetDescription_Call) Run ¶ added in v0.5.1
func (_c *MockParameter_GetDescription_Call) Run(run func()) *MockParameter_GetDescription_Call
func (*MockParameter_GetDescription_Call) RunAndReturn ¶ added in v0.5.1
func (_c *MockParameter_GetDescription_Call) RunAndReturn(run func() string) *MockParameter_GetDescription_Call
type MockParameter_GetEnvVarName_Call ¶ added in v0.5.1
MockParameter_GetEnvVarName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEnvVarName'
func (*MockParameter_GetEnvVarName_Call) Return ¶ added in v0.5.1
func (_c *MockParameter_GetEnvVarName_Call) Return(s string) *MockParameter_GetEnvVarName_Call
func (*MockParameter_GetEnvVarName_Call) Run ¶ added in v0.5.1
func (_c *MockParameter_GetEnvVarName_Call) Run(run func()) *MockParameter_GetEnvVarName_Call
func (*MockParameter_GetEnvVarName_Call) RunAndReturn ¶ added in v0.5.1
func (_c *MockParameter_GetEnvVarName_Call) RunAndReturn(run func() string) *MockParameter_GetEnvVarName_Call
type MockParameter_GetFlagName_Call ¶ added in v0.5.1
MockParameter_GetFlagName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlagName'
func (*MockParameter_GetFlagName_Call) Return ¶ added in v0.5.1
func (_c *MockParameter_GetFlagName_Call) Return(s string) *MockParameter_GetFlagName_Call
func (*MockParameter_GetFlagName_Call) Run ¶ added in v0.5.1
func (_c *MockParameter_GetFlagName_Call) Run(run func()) *MockParameter_GetFlagName_Call
func (*MockParameter_GetFlagName_Call) RunAndReturn ¶ added in v0.5.1
func (_c *MockParameter_GetFlagName_Call) RunAndReturn(run func() string) *MockParameter_GetFlagName_Call
type MockParameter_GetHiddenFlag_Call ¶ added in v0.5.1
MockParameter_GetHiddenFlag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHiddenFlag'
func (*MockParameter_GetHiddenFlag_Call) Return ¶ added in v0.5.1
func (_c *MockParameter_GetHiddenFlag_Call) Return(b bool) *MockParameter_GetHiddenFlag_Call
func (*MockParameter_GetHiddenFlag_Call) Run ¶ added in v0.5.1
func (_c *MockParameter_GetHiddenFlag_Call) Run(run func()) *MockParameter_GetHiddenFlag_Call
func (*MockParameter_GetHiddenFlag_Call) RunAndReturn ¶ added in v0.5.1
func (_c *MockParameter_GetHiddenFlag_Call) RunAndReturn(run func() bool) *MockParameter_GetHiddenFlag_Call
type MockParameter_GetID_Call ¶ added in v0.5.1
MockParameter_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*MockParameter_GetID_Call) Return ¶ added in v0.5.1
func (_c *MockParameter_GetID_Call) Return(s string) *MockParameter_GetID_Call
func (*MockParameter_GetID_Call) Run ¶ added in v0.5.1
func (_c *MockParameter_GetID_Call) Run(run func()) *MockParameter_GetID_Call
func (*MockParameter_GetID_Call) RunAndReturn ¶ added in v0.5.1
func (_c *MockParameter_GetID_Call) RunAndReturn(run func() string) *MockParameter_GetID_Call
type MockParameter_GetPIISafe_Call ¶ added in v0.7.0
MockParameter_GetPIISafe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPIISafe'
func (*MockParameter_GetPIISafe_Call) Return ¶ added in v0.7.0
func (_c *MockParameter_GetPIISafe_Call) Return(b bool) *MockParameter_GetPIISafe_Call
func (*MockParameter_GetPIISafe_Call) Run ¶ added in v0.7.0
func (_c *MockParameter_GetPIISafe_Call) Run(run func()) *MockParameter_GetPIISafe_Call
func (*MockParameter_GetPIISafe_Call) RunAndReturn ¶ added in v0.7.0
func (_c *MockParameter_GetPIISafe_Call) RunAndReturn(run func() bool) *MockParameter_GetPIISafe_Call
type MockParameter_GetRecordToLog_Call ¶ added in v0.5.1
MockParameter_GetRecordToLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRecordToLog'
func (*MockParameter_GetRecordToLog_Call) Return ¶ added in v0.5.1
func (_c *MockParameter_GetRecordToLog_Call) Return(b bool) *MockParameter_GetRecordToLog_Call
func (*MockParameter_GetRecordToLog_Call) Run ¶ added in v0.5.1
func (_c *MockParameter_GetRecordToLog_Call) Run(run func()) *MockParameter_GetRecordToLog_Call
func (*MockParameter_GetRecordToLog_Call) RunAndReturn ¶ added in v0.5.1
func (_c *MockParameter_GetRecordToLog_Call) RunAndReturn(run func() bool) *MockParameter_GetRecordToLog_Call
type MockSessionDetails ¶
MockSessionDetails is an autogenerated mock type for the SessionDetails type
func NewMockSessionDetails ¶
func NewMockSessionDetails(t interface {
mock.TestingT
Cleanup(func())
}) *MockSessionDetails
NewMockSessionDetails creates a new instance of MockSessionDetails. 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 (*MockSessionDetails) EXPECT ¶
func (_m *MockSessionDetails) EXPECT() *MockSessionDetails_Expecter
type MockSessionDetails_Expecter ¶
type MockSessionDetails_Expecter struct {
// contains filtered or unexported fields
}
type MockSessionDetails_interfacelock_Call ¶
MockSessionDetails_interfacelock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'interfacelock'
func (*MockSessionDetails_interfacelock_Call) Return ¶
func (_c *MockSessionDetails_interfacelock_Call) Return() *MockSessionDetails_interfacelock_Call
func (*MockSessionDetails_interfacelock_Call) Run ¶
func (_c *MockSessionDetails_interfacelock_Call) Run(run func()) *MockSessionDetails_interfacelock_Call
func (*MockSessionDetails_interfacelock_Call) RunAndReturn ¶
func (_c *MockSessionDetails_interfacelock_Call) RunAndReturn(run func()) *MockSessionDetails_interfacelock_Call
type MockWriter ¶
MockWriter is an autogenerated mock type for the Writer type
func NewMockWriter ¶
func NewMockWriter(t interface {
mock.TestingT
Cleanup(func())
}) *MockWriter
NewMockWriter creates a new instance of MockWriter. 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 (*MockWriter) EXPECT ¶
func (_m *MockWriter) EXPECT() *MockWriter_Expecter
type MockWriter_Expecter ¶
type MockWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWriter_Expecter) Write ¶
func (_e *MockWriter_Expecter) Write(p interface{}) *MockWriter_Write_Call
Write is a helper method to define mock.On call
- p []byte
type MockWriter_Write_Call ¶
MockWriter_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*MockWriter_Write_Call) Return ¶
func (_c *MockWriter_Write_Call) Return(n int, err error) *MockWriter_Write_Call
func (*MockWriter_Write_Call) Run ¶
func (_c *MockWriter_Write_Call) Run(run func(p []byte)) *MockWriter_Write_Call
func (*MockWriter_Write_Call) RunAndReturn ¶
func (_c *MockWriter_Write_Call) RunAndReturn(run func(p []byte) (int, error)) *MockWriter_Write_Call