mocktools

package
v1.0.178 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocktools is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCallback

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

MockCallback is a mock of Callback interface.

func NewMockCallback

func NewMockCallback(ctrl *gomock.Controller) *MockCallback

NewMockCallback creates a new mock instance.

func (*MockCallback) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCallback) OnToolEnd

func (m *MockCallback) OnToolEnd(ctx context.Context, tool tools.ITool, assistantName, input, output string)

OnToolEnd mocks base method.

func (*MockCallback) OnToolError

func (m *MockCallback) OnToolError(ctx context.Context, tool tools.ITool, assistantName, input string, err error)

OnToolError mocks base method.

func (*MockCallback) OnToolStart

func (m *MockCallback) OnToolStart(ctx context.Context, tool tools.ITool, assistantName, input string)

OnToolStart mocks base method.

type MockCallbackMockRecorder

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

MockCallbackMockRecorder is the mock recorder for MockCallback.

func (*MockCallbackMockRecorder) OnToolEnd

func (mr *MockCallbackMockRecorder) OnToolEnd(ctx, tool, assistantName, input, output any) *gomock.Call

OnToolEnd indicates an expected call of OnToolEnd.

func (*MockCallbackMockRecorder) OnToolError

func (mr *MockCallbackMockRecorder) OnToolError(ctx, tool, assistantName, input, err any) *gomock.Call

OnToolError indicates an expected call of OnToolError.

func (*MockCallbackMockRecorder) OnToolStart

func (mr *MockCallbackMockRecorder) OnToolStart(ctx, tool, assistantName, input any) *gomock.Call

OnToolStart indicates an expected call of OnToolStart.

type MockIMCPTool added in v0.7.38

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

MockIMCPTool is a mock of IMCPTool interface.

func NewMockIMCPTool added in v0.7.38

func NewMockIMCPTool(ctrl *gomock.Controller) *MockIMCPTool

NewMockIMCPTool creates a new mock instance.

func (*MockIMCPTool) Call added in v0.7.38

func (m *MockIMCPTool) Call(arg0 context.Context, arg1 string) (string, error)

Call mocks base method.

func (*MockIMCPTool) Description added in v0.7.38

func (m *MockIMCPTool) Description() string

Description mocks base method.

func (*MockIMCPTool) EXPECT added in v0.7.38

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIMCPTool) Name added in v0.7.38

func (m *MockIMCPTool) Name() string

Name mocks base method.

func (*MockIMCPTool) Parameters added in v0.7.38

func (m *MockIMCPTool) Parameters() *jsonschema.Schema

Parameters mocks base method.

func (*MockIMCPTool) RegisterMCP added in v0.7.38

func (m *MockIMCPTool) RegisterMCP(registrator tools.McpServerRegistrator) error

RegisterMCP mocks base method.

type MockIMCPToolMockRecorder added in v0.7.38

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

MockIMCPToolMockRecorder is the mock recorder for MockIMCPTool.

func (*MockIMCPToolMockRecorder) Call added in v0.7.38

func (mr *MockIMCPToolMockRecorder) Call(arg0, arg1 any) *gomock.Call

Call indicates an expected call of Call.

func (*MockIMCPToolMockRecorder) Description added in v0.7.38

func (mr *MockIMCPToolMockRecorder) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockIMCPToolMockRecorder) Name added in v0.7.38

func (mr *MockIMCPToolMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockIMCPToolMockRecorder) Parameters added in v0.7.38

func (mr *MockIMCPToolMockRecorder) Parameters() *gomock.Call

Parameters indicates an expected call of Parameters.

func (*MockIMCPToolMockRecorder) RegisterMCP added in v0.7.38

func (mr *MockIMCPToolMockRecorder) RegisterMCP(registrator any) *gomock.Call

RegisterMCP indicates an expected call of RegisterMCP.

type MockITool

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

MockITool is a mock of ITool interface.

func NewMockITool

func NewMockITool(ctrl *gomock.Controller) *MockITool

NewMockITool creates a new mock instance.

func (*MockITool) Call

func (m *MockITool) Call(arg0 context.Context, arg1 string) (string, error)

Call mocks base method.

func (*MockITool) Description

func (m *MockITool) Description() string

Description mocks base method.

func (*MockITool) EXPECT

func (m *MockITool) EXPECT() *MockIToolMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockITool) Name

func (m *MockITool) Name() string

Name mocks base method.

func (*MockITool) Parameters

func (m *MockITool) Parameters() *jsonschema.Schema

Parameters mocks base method.

type MockIToolMockRecorder

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

MockIToolMockRecorder is the mock recorder for MockITool.

func (*MockIToolMockRecorder) Call

func (mr *MockIToolMockRecorder) Call(arg0, arg1 any) *gomock.Call

Call indicates an expected call of Call.

func (*MockIToolMockRecorder) Description

func (mr *MockIToolMockRecorder) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockIToolMockRecorder) Name

func (mr *MockIToolMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockIToolMockRecorder) Parameters

func (mr *MockIToolMockRecorder) Parameters() *gomock.Call

Parameters indicates an expected call of Parameters.

type MockMCPTool added in v0.7.38

type MockMCPTool[I any] struct {
	// contains filtered or unexported fields
}

MockMCPTool is a mock of MCPTool interface.

func NewMockMCPTool added in v0.7.38

func NewMockMCPTool[I any](ctrl *gomock.Controller) *MockMCPTool[I]

NewMockMCPTool creates a new mock instance.

func (*MockMCPTool[I]) Call added in v0.7.38

func (m *MockMCPTool[I]) Call(arg0 context.Context, arg1 string) (string, error)

Call mocks base method.

func (*MockMCPTool[I]) Description added in v0.7.38

func (m *MockMCPTool[I]) Description() string

Description mocks base method.

func (*MockMCPTool[I]) EXPECT added in v0.7.38

func (m *MockMCPTool[I]) EXPECT() *MockMCPToolMockRecorder[I]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMCPTool[I]) Name added in v0.7.38

func (m *MockMCPTool[I]) Name() string

Name mocks base method.

func (*MockMCPTool[I]) Parameters added in v0.7.38

func (m *MockMCPTool[I]) Parameters() *jsonschema.Schema

Parameters mocks base method.

func (*MockMCPTool[I]) RegisterMCP added in v0.7.38

func (m *MockMCPTool[I]) RegisterMCP(registrator tools.McpServerRegistrator) error

RegisterMCP mocks base method.

func (*MockMCPTool[I]) RunMCP added in v0.7.38

func (m *MockMCPTool[I]) RunMCP(arg0 context.Context, arg1 *I) (*mcp.ToolResponse, error)

RunMCP mocks base method.

type MockMCPToolMockRecorder added in v0.7.38

type MockMCPToolMockRecorder[I any] struct {
	// contains filtered or unexported fields
}

MockMCPToolMockRecorder is the mock recorder for MockMCPTool.

func (*MockMCPToolMockRecorder[I]) Call added in v0.7.38

func (mr *MockMCPToolMockRecorder[I]) Call(arg0, arg1 any) *gomock.Call

Call indicates an expected call of Call.

func (*MockMCPToolMockRecorder[I]) Description added in v0.7.38

func (mr *MockMCPToolMockRecorder[I]) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockMCPToolMockRecorder[I]) Name added in v0.7.38

func (mr *MockMCPToolMockRecorder[I]) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockMCPToolMockRecorder[I]) Parameters added in v0.7.38

func (mr *MockMCPToolMockRecorder[I]) Parameters() *gomock.Call

Parameters indicates an expected call of Parameters.

func (*MockMCPToolMockRecorder[I]) RegisterMCP added in v0.7.38

func (mr *MockMCPToolMockRecorder[I]) RegisterMCP(registrator any) *gomock.Call

RegisterMCP indicates an expected call of RegisterMCP.

func (*MockMCPToolMockRecorder[I]) RunMCP added in v0.7.38

func (mr *MockMCPToolMockRecorder[I]) RunMCP(arg0, arg1 any) *gomock.Call

RunMCP indicates an expected call of RunMCP.

type MockMcpServerRegistrator added in v0.7.38

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

MockMcpServerRegistrator is a mock of McpServerRegistrator interface.

func NewMockMcpServerRegistrator added in v0.7.38

func NewMockMcpServerRegistrator(ctrl *gomock.Controller) *MockMcpServerRegistrator

NewMockMcpServerRegistrator creates a new mock instance.

func (*MockMcpServerRegistrator) EXPECT added in v0.7.38

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMcpServerRegistrator) RegisterTool added in v0.7.38

func (m *MockMcpServerRegistrator) RegisterTool(name, description string, handler any) error

RegisterTool mocks base method.

type MockMcpServerRegistratorMockRecorder added in v0.7.38

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

MockMcpServerRegistratorMockRecorder is the mock recorder for MockMcpServerRegistrator.

func (*MockMcpServerRegistratorMockRecorder) RegisterTool added in v0.7.38

func (mr *MockMcpServerRegistratorMockRecorder) RegisterTool(name, description, handler any) *gomock.Call

RegisterTool indicates an expected call of RegisterTool.

type MockTool

type MockTool[I any, O any] struct {
	// contains filtered or unexported fields
}

MockTool is a mock of Tool interface.

func NewMockTool

func NewMockTool[I any, O any](ctrl *gomock.Controller) *MockTool[I, O]

NewMockTool creates a new mock instance.

func (*MockTool[I, O]) Call

func (m *MockTool[I, O]) Call(arg0 context.Context, arg1 string) (string, error)

Call mocks base method.

func (*MockTool[I, O]) Description

func (m *MockTool[I, O]) Description() string

Description mocks base method.

func (*MockTool[I, O]) EXPECT

func (m *MockTool[I, O]) EXPECT() *MockToolMockRecorder[I, O]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTool[I, O]) Name

func (m *MockTool[I, O]) Name() string

Name mocks base method.

func (*MockTool[I, O]) Parameters

func (m *MockTool[I, O]) Parameters() *jsonschema.Schema

Parameters mocks base method.

func (*MockTool[I, O]) Run

func (m *MockTool[I, O]) Run(arg0 context.Context, arg1 *I) (*O, error)

Run mocks base method.

type MockToolMockRecorder

type MockToolMockRecorder[I any, O any] struct {
	// contains filtered or unexported fields
}

MockToolMockRecorder is the mock recorder for MockTool.

func (*MockToolMockRecorder[I, O]) Call

func (mr *MockToolMockRecorder[I, O]) Call(arg0, arg1 any) *gomock.Call

Call indicates an expected call of Call.

func (*MockToolMockRecorder[I, O]) Description

func (mr *MockToolMockRecorder[I, O]) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockToolMockRecorder[I, O]) Name

func (mr *MockToolMockRecorder[I, O]) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockToolMockRecorder[I, O]) Parameters

func (mr *MockToolMockRecorder[I, O]) Parameters() *gomock.Call

Parameters indicates an expected call of Parameters.

func (*MockToolMockRecorder[I, O]) Run

func (mr *MockToolMockRecorder[I, O]) Run(arg0, arg1 any) *gomock.Call

Run indicates an expected call of Run.

Jump to

Keyboard shortcuts

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