mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGlobalMATLAB

type MockGlobalMATLAB struct {
	mock.Mock
}

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

Client provides a mock function for the type MockGlobalMATLAB

func (*MockGlobalMATLAB) EXPECT

type MockGlobalMATLAB_Client_Call

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

func (*MockGlobalMATLAB_Client_Call) RunAndReturn

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

type MockLogger struct {
	mock.Mock
}

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

func (*MockLogger) With

func (_mock *MockLogger) With(key string, value any) entities.Logger

With provides a mock function for the type MockLogger

func (*MockLogger) WithError

func (_mock *MockLogger) WithError(err error) entities.Logger

WithError provides a mock function for the type MockLogger

type MockLogger_Debug_Call

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

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

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

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

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

func (*MockLogger_WithError_Call) RunAndReturn

func (_c *MockLogger_WithError_Call) RunAndReturn(run func(err error) entities.Logger) *MockLogger_WithError_Call

type MockLogger_With_Call

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

type MockMATLABManager struct {
	mock.Mock
}

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 (*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

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

func (*MockMATLABManager_GetMATLABSessionClient_Call) RunAndReturn

type MockMATLABManager_ListEnvironments_Call

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

func (*MockMATLABManager_ListEnvironments_Call) RunAndReturn

type MockMATLABManager_StartMATLABSession_Call

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

func (*MockMATLABManager_StartMATLABSession_Call) RunAndReturn

type MockMATLABManager_StopMATLABSession_Call

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

func (*MockMATLABManager_StopMATLABSession_Call) RunAndReturn

type MockMATLABSessionClient

type MockMATLABSessionClient struct {
	mock.Mock
}

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 (*MockMATLABSessionClient) Eval

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

FEval provides a mock function for the type MockMATLABSessionClient

type MockMATLABSessionClient_EvalWithCapture_Call

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

func (*MockMATLABSessionClient_EvalWithCapture_Call) RunAndReturn

type MockMATLABSessionClient_Eval_Call

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

func (*MockMATLABSessionClient_Eval_Call) RunAndReturn

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

type MockMATLABSessionClient_FEval_Call

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

func (*MockMATLABSessionClient_FEval_Call) RunAndReturn

type MockMode

type MockMode struct {
	mock.Mock
}

MockMode is an autogenerated mock type for the Mode type

func NewMockMode

func NewMockMode(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMode

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

func (_m *MockMode) EXPECT() *MockMode_Expecter

func (*MockMode) StartAndWaitForCompletion

func (_mock *MockMode) StartAndWaitForCompletion(ctx context.Context) error

StartAndWaitForCompletion provides a mock function for the type MockMode

type MockMode_Expecter

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

func (*MockMode_Expecter) StartAndWaitForCompletion

func (_e *MockMode_Expecter) StartAndWaitForCompletion(ctx interface{}) *MockMode_StartAndWaitForCompletion_Call

StartAndWaitForCompletion is a helper method to define mock.On call

  • ctx context.Context

type MockMode_StartAndWaitForCompletion_Call

type MockMode_StartAndWaitForCompletion_Call struct {
	*mock.Call
}

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

func (*MockMode_StartAndWaitForCompletion_Call) Return

func (*MockMode_StartAndWaitForCompletion_Call) Run

func (*MockMode_StartAndWaitForCompletion_Call) RunAndReturn

type MockOSStdio

type MockOSStdio struct {
	mock.Mock
}

MockOSStdio is an autogenerated mock type for the OSStdio type

func NewMockOSStdio

func NewMockOSStdio(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockOSStdio

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

func (_m *MockOSStdio) EXPECT() *MockOSStdio_Expecter

func (*MockOSStdio) Stderr

func (_mock *MockOSStdio) Stderr() entities.Writer

Stderr provides a mock function for the type MockOSStdio

func (*MockOSStdio) Stdin

func (_mock *MockOSStdio) Stdin() entities.Reader

Stdin provides a mock function for the type MockOSStdio

func (*MockOSStdio) Stdout

func (_mock *MockOSStdio) Stdout() entities.Writer

Stdout provides a mock function for the type MockOSStdio

type MockOSStdio_Expecter

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

func (*MockOSStdio_Expecter) Stderr

Stderr is a helper method to define mock.On call

func (*MockOSStdio_Expecter) Stdin

Stdin is a helper method to define mock.On call

func (*MockOSStdio_Expecter) Stdout

Stdout is a helper method to define mock.On call

type MockOSStdio_Stderr_Call

type MockOSStdio_Stderr_Call struct {
	*mock.Call
}

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

func (*MockOSStdio_Stderr_Call) Return

func (*MockOSStdio_Stderr_Call) Run

func (_c *MockOSStdio_Stderr_Call) Run(run func()) *MockOSStdio_Stderr_Call

func (*MockOSStdio_Stderr_Call) RunAndReturn

func (_c *MockOSStdio_Stderr_Call) RunAndReturn(run func() entities.Writer) *MockOSStdio_Stderr_Call

type MockOSStdio_Stdin_Call

type MockOSStdio_Stdin_Call struct {
	*mock.Call
}

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

func (*MockOSStdio_Stdin_Call) Return

func (*MockOSStdio_Stdin_Call) Run

func (_c *MockOSStdio_Stdin_Call) Run(run func()) *MockOSStdio_Stdin_Call

func (*MockOSStdio_Stdin_Call) RunAndReturn

func (_c *MockOSStdio_Stdin_Call) RunAndReturn(run func() entities.Reader) *MockOSStdio_Stdin_Call

type MockOSStdio_Stdout_Call

type MockOSStdio_Stdout_Call struct {
	*mock.Call
}

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

func (*MockOSStdio_Stdout_Call) Return

func (*MockOSStdio_Stdout_Call) Run

func (_c *MockOSStdio_Stdout_Call) Run(run func()) *MockOSStdio_Stdout_Call

func (*MockOSStdio_Stdout_Call) RunAndReturn

func (_c *MockOSStdio_Stdout_Call) RunAndReturn(run func() entities.Writer) *MockOSStdio_Stdout_Call

type MockReader

type MockReader struct {
	mock.Mock
}

MockReader is an autogenerated mock type for the Reader type

func NewMockReader

func NewMockReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReader

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

func (_m *MockReader) EXPECT() *MockReader_Expecter

func (*MockReader) Read

func (_mock *MockReader) Read(p []byte) (int, error)

Read provides a mock function for the type MockReader

type MockReader_Expecter

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

func (*MockReader_Expecter) Read

func (_e *MockReader_Expecter) Read(p interface{}) *MockReader_Read_Call

Read is a helper method to define mock.On call

  • p []byte

type MockReader_Read_Call

type MockReader_Read_Call struct {
	*mock.Call
}

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

func (*MockReader_Read_Call) Return

func (_c *MockReader_Read_Call) Return(n int, err error) *MockReader_Read_Call

func (*MockReader_Read_Call) Run

func (_c *MockReader_Read_Call) Run(run func(p []byte)) *MockReader_Read_Call

func (*MockReader_Read_Call) RunAndReturn

func (_c *MockReader_Read_Call) RunAndReturn(run func(p []byte) (int, error)) *MockReader_Read_Call

type MockSessionDetails

type MockSessionDetails struct {
	mock.Mock
}

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

type MockSessionDetails_Expecter

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

type MockSessionDetails_interfacelock_Call

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

func (*MockSessionDetails_interfacelock_Call) RunAndReturn

type MockSubProcessStdio

type MockSubProcessStdio struct {
	mock.Mock
}

MockSubProcessStdio is an autogenerated mock type for the SubProcessStdio type

func NewMockSubProcessStdio

func NewMockSubProcessStdio(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSubProcessStdio

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

func (*MockSubProcessStdio) Stderr

func (_mock *MockSubProcessStdio) Stderr() entities.Reader

Stderr provides a mock function for the type MockSubProcessStdio

func (*MockSubProcessStdio) Stdin

func (_mock *MockSubProcessStdio) Stdin() entities.Writer

Stdin provides a mock function for the type MockSubProcessStdio

func (*MockSubProcessStdio) Stdout

func (_mock *MockSubProcessStdio) Stdout() entities.Reader

Stdout provides a mock function for the type MockSubProcessStdio

type MockSubProcessStdio_Expecter

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

func (*MockSubProcessStdio_Expecter) Stderr

Stderr is a helper method to define mock.On call

func (*MockSubProcessStdio_Expecter) Stdin

Stdin is a helper method to define mock.On call

func (*MockSubProcessStdio_Expecter) Stdout

Stdout is a helper method to define mock.On call

type MockSubProcessStdio_Stderr_Call

type MockSubProcessStdio_Stderr_Call struct {
	*mock.Call
}

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

func (*MockSubProcessStdio_Stderr_Call) Return

func (*MockSubProcessStdio_Stderr_Call) Run

func (*MockSubProcessStdio_Stderr_Call) RunAndReturn

type MockSubProcessStdio_Stdin_Call

type MockSubProcessStdio_Stdin_Call struct {
	*mock.Call
}

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

func (*MockSubProcessStdio_Stdin_Call) Return

func (*MockSubProcessStdio_Stdin_Call) Run

func (*MockSubProcessStdio_Stdin_Call) RunAndReturn

type MockSubProcessStdio_Stdout_Call

type MockSubProcessStdio_Stdout_Call struct {
	*mock.Call
}

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

func (*MockSubProcessStdio_Stdout_Call) Return

func (*MockSubProcessStdio_Stdout_Call) Run

func (*MockSubProcessStdio_Stdout_Call) RunAndReturn

type MockWriter

type MockWriter struct {
	mock.Mock
}

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

func (*MockWriter) Write

func (_mock *MockWriter) Write(p []byte) (int, error)

Write provides a mock function for the type MockWriter

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

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

Jump to

Keyboard shortcuts

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