mocks

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfigFactory added in v0.5.0

type MockConfigFactory struct {
	mock.Mock
}

MockConfigFactory is an autogenerated mock type for the ConfigFactory type

func NewMockConfigFactory added in v0.5.0

func NewMockConfigFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfigFactory

NewMockConfigFactory creates a new instance of MockConfigFactory. 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 (*MockConfigFactory) Config added in v0.5.0

func (_mock *MockConfigFactory) Config() (config.Config, messages.Error)

Config provides a mock function for the type MockConfigFactory

func (*MockConfigFactory) EXPECT added in v0.5.0

type MockConfigFactory_Config_Call added in v0.5.0

type MockConfigFactory_Config_Call struct {
	*mock.Call
}

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

func (*MockConfigFactory_Config_Call) Return added in v0.5.0

func (*MockConfigFactory_Config_Call) Run added in v0.5.0

func (*MockConfigFactory_Config_Call) RunAndReturn added in v0.5.0

type MockConfigFactory_Expecter added in v0.5.0

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

func (*MockConfigFactory_Expecter) Config added in v0.5.0

Config is a helper method to define mock.On call

type MockUsecase

type MockUsecase struct {
	mock.Mock
}

MockUsecase is an autogenerated mock type for the Usecase type

func NewMockUsecase

func NewMockUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUsecase

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

func (_m *MockUsecase) EXPECT() *MockUsecase_Expecter

func (*MockUsecase) Execute

func (_mock *MockUsecase) Execute(ctx context.Context, sessionLogger entities.Logger, client entities.MATLABSessionClient, request evalmatlabcode.Args) (entities.EvalResponse, error)

Execute provides a mock function for the type MockUsecase

type MockUsecase_Execute_Call

type MockUsecase_Execute_Call struct {
	*mock.Call
}

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

func (*MockUsecase_Execute_Call) Return

func (*MockUsecase_Execute_Call) Run

func (*MockUsecase_Execute_Call) RunAndReturn

type MockUsecase_Expecter

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

func (*MockUsecase_Expecter) Execute

func (_e *MockUsecase_Expecter) Execute(ctx interface{}, sessionLogger interface{}, client interface{}, request interface{}) *MockUsecase_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • sessionLogger entities.Logger
  • client entities.MATLABSessionClient
  • request evalmatlabcode.Args

Jump to

Keyboard shortcuts

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