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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplication

type MockApplication struct {
	mock.Mock
}

MockApplication is an autogenerated mock type for the Application type

func NewMockApplication

func NewMockApplication(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockApplication

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

func (*MockApplication) MessageCatalog

func (_mock *MockApplication) MessageCatalog() adaptor.MessageCatalog

MessageCatalog provides a mock function for the type MockApplication

func (*MockApplication) ModeSelector

func (_mock *MockApplication) ModeSelector() adaptor.ModeSelector

ModeSelector provides a mock function for the type MockApplication

type MockApplicationDefinition

type MockApplicationDefinition struct {
	mock.Mock
}

MockApplicationDefinition is an autogenerated mock type for the ApplicationDefinition type

func NewMockApplicationDefinition

func NewMockApplicationDefinition(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockApplicationDefinition

NewMockApplicationDefinition creates a new instance of MockApplicationDefinition. 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 (*MockApplicationDefinition) Dependencies added in v0.5.1

Dependencies provides a mock function for the type MockApplicationDefinition

func (*MockApplicationDefinition) EXPECT

func (*MockApplicationDefinition) Features added in v0.5.1

func (_mock *MockApplicationDefinition) Features() definition.Features

Features provides a mock function for the type MockApplicationDefinition

func (*MockApplicationDefinition) Instructions

func (_mock *MockApplicationDefinition) Instructions() string

Instructions provides a mock function for the type MockApplicationDefinition

func (*MockApplicationDefinition) Name

func (_mock *MockApplicationDefinition) Name() string

Name provides a mock function for the type MockApplicationDefinition

func (*MockApplicationDefinition) Parameters added in v0.5.1

func (_mock *MockApplicationDefinition) Parameters() []entities.Parameter

Parameters provides a mock function for the type MockApplicationDefinition

func (*MockApplicationDefinition) Title

func (_mock *MockApplicationDefinition) Title() string

Title provides a mock function for the type MockApplicationDefinition

func (*MockApplicationDefinition) Tools

Tools provides a mock function for the type MockApplicationDefinition

type MockApplicationDefinition_Dependencies_Call added in v0.5.1

type MockApplicationDefinition_Dependencies_Call struct {
	*mock.Call
}

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

func (*MockApplicationDefinition_Dependencies_Call) Return added in v0.5.1

func (*MockApplicationDefinition_Dependencies_Call) Run added in v0.5.1

func (*MockApplicationDefinition_Dependencies_Call) RunAndReturn added in v0.5.1

type MockApplicationDefinition_Expecter

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

func (*MockApplicationDefinition_Expecter) Dependencies added in v0.5.1

Dependencies is a helper method to define mock.On call

  • resources definition.DependenciesProviderResources

func (*MockApplicationDefinition_Expecter) Features added in v0.5.1

Features is a helper method to define mock.On call

func (*MockApplicationDefinition_Expecter) Instructions

Instructions is a helper method to define mock.On call

func (*MockApplicationDefinition_Expecter) Name

Name is a helper method to define mock.On call

func (*MockApplicationDefinition_Expecter) Parameters added in v0.5.1

Parameters is a helper method to define mock.On call

func (*MockApplicationDefinition_Expecter) Title

Title is a helper method to define mock.On call

func (*MockApplicationDefinition_Expecter) Tools

Tools is a helper method to define mock.On call

  • resources definition.ToolsProviderResources

type MockApplicationDefinition_Features_Call added in v0.5.1

type MockApplicationDefinition_Features_Call struct {
	*mock.Call
}

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

func (*MockApplicationDefinition_Features_Call) Return added in v0.5.1

func (*MockApplicationDefinition_Features_Call) Run added in v0.5.1

func (*MockApplicationDefinition_Features_Call) RunAndReturn added in v0.5.1

type MockApplicationDefinition_Instructions_Call

type MockApplicationDefinition_Instructions_Call struct {
	*mock.Call
}

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

func (*MockApplicationDefinition_Instructions_Call) Return

func (*MockApplicationDefinition_Instructions_Call) Run

func (*MockApplicationDefinition_Instructions_Call) RunAndReturn

type MockApplicationDefinition_Name_Call

type MockApplicationDefinition_Name_Call struct {
	*mock.Call
}

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

func (*MockApplicationDefinition_Name_Call) Return

func (*MockApplicationDefinition_Name_Call) Run

func (*MockApplicationDefinition_Name_Call) RunAndReturn

type MockApplicationDefinition_Parameters_Call added in v0.5.1

type MockApplicationDefinition_Parameters_Call struct {
	*mock.Call
}

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

func (*MockApplicationDefinition_Parameters_Call) Return added in v0.5.1

func (*MockApplicationDefinition_Parameters_Call) Run added in v0.5.1

func (*MockApplicationDefinition_Parameters_Call) RunAndReturn added in v0.5.1

type MockApplicationDefinition_Title_Call

type MockApplicationDefinition_Title_Call struct {
	*mock.Call
}

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

func (*MockApplicationDefinition_Title_Call) Return

func (*MockApplicationDefinition_Title_Call) Run

func (*MockApplicationDefinition_Title_Call) RunAndReturn

type MockApplicationDefinition_Tools_Call

type MockApplicationDefinition_Tools_Call struct {
	*mock.Call
}

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

func (*MockApplicationDefinition_Tools_Call) Return

func (*MockApplicationDefinition_Tools_Call) Run

func (*MockApplicationDefinition_Tools_Call) RunAndReturn

type MockApplicationFactory

type MockApplicationFactory struct {
	mock.Mock
}

MockApplicationFactory is an autogenerated mock type for the ApplicationFactory type

func NewMockApplicationFactory

func NewMockApplicationFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockApplicationFactory

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

func (*MockApplicationFactory) New

New provides a mock function for the type MockApplicationFactory

type MockApplicationFactory_Expecter

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

func (*MockApplicationFactory_Expecter) New

func (_e *MockApplicationFactory_Expecter) New(definition interface{}) *MockApplicationFactory_New_Call

New is a helper method to define mock.On call

  • definition adaptor.ApplicationDefinition

type MockApplicationFactory_New_Call

type MockApplicationFactory_New_Call struct {
	*mock.Call
}

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

func (*MockApplicationFactory_New_Call) Return

func (*MockApplicationFactory_New_Call) Run

func (*MockApplicationFactory_New_Call) RunAndReturn

type MockApplication_Expecter

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

func (*MockApplication_Expecter) MessageCatalog

MessageCatalog is a helper method to define mock.On call

func (*MockApplication_Expecter) ModeSelector

ModeSelector is a helper method to define mock.On call

type MockApplication_MessageCatalog_Call

type MockApplication_MessageCatalog_Call struct {
	*mock.Call
}

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

func (*MockApplication_MessageCatalog_Call) Return

func (*MockApplication_MessageCatalog_Call) Run

func (*MockApplication_MessageCatalog_Call) RunAndReturn

type MockApplication_ModeSelector_Call

type MockApplication_ModeSelector_Call struct {
	*mock.Call
}

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

func (*MockApplication_ModeSelector_Call) Return

func (*MockApplication_ModeSelector_Call) Run

func (*MockApplication_ModeSelector_Call) RunAndReturn

type MockLoggerFactory

type MockLoggerFactory struct {
	mock.Mock
}

MockLoggerFactory is an autogenerated mock type for the LoggerFactory type

func NewMockLoggerFactory

func NewMockLoggerFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLoggerFactory

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

func (*MockLoggerFactory) GetGlobalLogger

func (_mock *MockLoggerFactory) GetGlobalLogger() (entities.Logger, messages.Error)

GetGlobalLogger provides a mock function for the type MockLoggerFactory

func (*MockLoggerFactory) NewMCPSessionLogger

func (_mock *MockLoggerFactory) NewMCPSessionLogger(session *mcp.ServerSession) (entities.Logger, messages.Error)

NewMCPSessionLogger provides a mock function for the type MockLoggerFactory

type MockLoggerFactory_Expecter

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

func (*MockLoggerFactory_Expecter) GetGlobalLogger

GetGlobalLogger is a helper method to define mock.On call

func (*MockLoggerFactory_Expecter) NewMCPSessionLogger

func (_e *MockLoggerFactory_Expecter) NewMCPSessionLogger(session interface{}) *MockLoggerFactory_NewMCPSessionLogger_Call

NewMCPSessionLogger is a helper method to define mock.On call

  • session *mcp.ServerSession

type MockLoggerFactory_GetGlobalLogger_Call

type MockLoggerFactory_GetGlobalLogger_Call struct {
	*mock.Call
}

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

func (*MockLoggerFactory_GetGlobalLogger_Call) Return

func (*MockLoggerFactory_GetGlobalLogger_Call) Run

func (*MockLoggerFactory_GetGlobalLogger_Call) RunAndReturn

type MockLoggerFactory_NewMCPSessionLogger_Call

type MockLoggerFactory_NewMCPSessionLogger_Call struct {
	*mock.Call
}

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

func (*MockLoggerFactory_NewMCPSessionLogger_Call) Return

func (*MockLoggerFactory_NewMCPSessionLogger_Call) Run

func (*MockLoggerFactory_NewMCPSessionLogger_Call) RunAndReturn

type MockMessageCatalog

type MockMessageCatalog struct {
	mock.Mock
}

MockMessageCatalog is an autogenerated mock type for the MessageCatalog type

func NewMockMessageCatalog

func NewMockMessageCatalog(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMessageCatalog

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

func (*MockMessageCatalog) Get

func (_mock *MockMessageCatalog) Get(key messages.MessageKey) string

Get provides a mock function for the type MockMessageCatalog

func (*MockMessageCatalog) GetFromError added in v0.7.0

func (_mock *MockMessageCatalog) GetFromError(err messages.Error) string

GetFromError provides a mock function for the type MockMessageCatalog

func (*MockMessageCatalog) GetFromGeneralError

func (_mock *MockMessageCatalog) GetFromGeneralError(err error) (string, bool)

GetFromGeneralError provides a mock function for the type MockMessageCatalog

type MockMessageCatalog_Expecter

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

func (*MockMessageCatalog_Expecter) Get

func (_e *MockMessageCatalog_Expecter) Get(key interface{}) *MockMessageCatalog_Get_Call

Get is a helper method to define mock.On call

  • key messages.MessageKey

func (*MockMessageCatalog_Expecter) GetFromError added in v0.7.0

func (_e *MockMessageCatalog_Expecter) GetFromError(err interface{}) *MockMessageCatalog_GetFromError_Call

GetFromError is a helper method to define mock.On call

  • err messages.Error

func (*MockMessageCatalog_Expecter) GetFromGeneralError

func (_e *MockMessageCatalog_Expecter) GetFromGeneralError(err interface{}) *MockMessageCatalog_GetFromGeneralError_Call

GetFromGeneralError is a helper method to define mock.On call

  • err error

type MockMessageCatalog_GetFromError_Call added in v0.7.0

type MockMessageCatalog_GetFromError_Call struct {
	*mock.Call
}

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

func (*MockMessageCatalog_GetFromError_Call) Return added in v0.7.0

func (*MockMessageCatalog_GetFromError_Call) Run added in v0.7.0

func (*MockMessageCatalog_GetFromError_Call) RunAndReturn added in v0.7.0

type MockMessageCatalog_GetFromGeneralError_Call

type MockMessageCatalog_GetFromGeneralError_Call struct {
	*mock.Call
}

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

func (*MockMessageCatalog_GetFromGeneralError_Call) Return

func (*MockMessageCatalog_GetFromGeneralError_Call) Run

func (*MockMessageCatalog_GetFromGeneralError_Call) RunAndReturn

type MockMessageCatalog_Get_Call

type MockMessageCatalog_Get_Call struct {
	*mock.Call
}

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

func (*MockMessageCatalog_Get_Call) Return

func (*MockMessageCatalog_Get_Call) Run

func (*MockMessageCatalog_Get_Call) RunAndReturn

type MockModeSelector

type MockModeSelector struct {
	mock.Mock
}

MockModeSelector is an autogenerated mock type for the ModeSelector type

func NewMockModeSelector

func NewMockModeSelector(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockModeSelector

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

func (*MockModeSelector) StartAndWaitForCompletion

func (_mock *MockModeSelector) StartAndWaitForCompletion(ctx context.Context) messages.Error

StartAndWaitForCompletion provides a mock function for the type MockModeSelector

type MockModeSelector_Expecter

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

func (*MockModeSelector_Expecter) StartAndWaitForCompletion

func (_e *MockModeSelector_Expecter) StartAndWaitForCompletion(ctx interface{}) *MockModeSelector_StartAndWaitForCompletion_Call

StartAndWaitForCompletion is a helper method to define mock.On call

  • ctx context.Context

type MockModeSelector_StartAndWaitForCompletion_Call

type MockModeSelector_StartAndWaitForCompletion_Call struct {
	*mock.Call
}

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

func (*MockModeSelector_StartAndWaitForCompletion_Call) Return

func (*MockModeSelector_StartAndWaitForCompletion_Call) Run

func (*MockModeSelector_StartAndWaitForCompletion_Call) RunAndReturn

Jump to

Keyboard shortcuts

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