mocks

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCodeAnalyzer added in v0.6.0

type MockCodeAnalyzer struct {
	mock.Mock
}

MockCodeAnalyzer is an autogenerated mock type for the CodeAnalyzer type

func NewMockCodeAnalyzer added in v0.6.0

func NewMockCodeAnalyzer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCodeAnalyzer

NewMockCodeAnalyzer creates a new instance of MockCodeAnalyzer. 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 (*MockCodeAnalyzer) AnalyzeCode added in v0.6.0

func (_mock *MockCodeAnalyzer) AnalyzeCode(ctx context.Context, logger entities.Logger, client entities.MATLABSessionClient, scriptPath string) ([]checkmatlabcode.CodeIssue, error)

AnalyzeCode provides a mock function for the type MockCodeAnalyzer

func (*MockCodeAnalyzer) EXPECT added in v0.6.0

type MockCodeAnalyzer_AnalyzeCode_Call added in v0.6.0

type MockCodeAnalyzer_AnalyzeCode_Call struct {
	*mock.Call
}

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

func (*MockCodeAnalyzer_AnalyzeCode_Call) Return added in v0.6.0

func (*MockCodeAnalyzer_AnalyzeCode_Call) Run added in v0.6.0

func (*MockCodeAnalyzer_AnalyzeCode_Call) RunAndReturn added in v0.6.0

type MockCodeAnalyzer_Expecter added in v0.6.0

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

func (*MockCodeAnalyzer_Expecter) AnalyzeCode added in v0.6.0

func (_e *MockCodeAnalyzer_Expecter) AnalyzeCode(ctx interface{}, logger interface{}, client interface{}, scriptPath interface{}) *MockCodeAnalyzer_AnalyzeCode_Call

AnalyzeCode is a helper method to define mock.On call

  • ctx context.Context
  • logger entities.Logger
  • client entities.MATLABSessionClient
  • scriptPath string

type MockPathValidator

type MockPathValidator struct {
	mock.Mock
}

MockPathValidator is an autogenerated mock type for the PathValidator type

func NewMockPathValidator

func NewMockPathValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPathValidator

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

func (*MockPathValidator) ValidateMATLABScript

func (_mock *MockPathValidator) ValidateMATLABScript(filePath string) (string, error)

ValidateMATLABScript provides a mock function for the type MockPathValidator

type MockPathValidator_Expecter

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

func (*MockPathValidator_Expecter) ValidateMATLABScript

func (_e *MockPathValidator_Expecter) ValidateMATLABScript(filePath interface{}) *MockPathValidator_ValidateMATLABScript_Call

ValidateMATLABScript is a helper method to define mock.On call

  • filePath string

type MockPathValidator_ValidateMATLABScript_Call

type MockPathValidator_ValidateMATLABScript_Call struct {
	*mock.Call
}

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

func (*MockPathValidator_ValidateMATLABScript_Call) Return

func (*MockPathValidator_ValidateMATLABScript_Call) Run

func (*MockPathValidator_ValidateMATLABScript_Call) RunAndReturn

Jump to

Keyboard shortcuts

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