mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Composer

type Composer struct {
	mock.Mock
}

Composer is an autogenerated mock type for the Composer type

func NewComposer

func NewComposer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Composer

NewComposer creates a new instance of Composer. 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 (*Composer) CallTool

func (_m *Composer) CallTool(ctx context.Context, rc *consumer.RoutableConsumer, name string, arguments json.RawMessage) (json.RawMessage, error)

CallTool provides a mock function with given fields: ctx, rc, name, arguments

func (*Composer) EXPECT

func (_m *Composer) EXPECT() *Composer_Expecter

func (*Composer) GetPrompt

func (_m *Composer) GetPrompt(ctx context.Context, rc *consumer.RoutableConsumer, name string, arguments map[string]string) (json.RawMessage, error)

GetPrompt provides a mock function with given fields: ctx, rc, name, arguments

func (*Composer) ListPrompts

func (_m *Composer) ListPrompts(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Prompt, error)

ListPrompts provides a mock function with given fields: ctx, rc

func (*Composer) ListResourceTemplates

func (_m *Composer) ListResourceTemplates(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.ResourceTemplate, error)

ListResourceTemplates provides a mock function with given fields: ctx, rc

func (*Composer) ListResources

func (_m *Composer) ListResources(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Resource, error)

ListResources provides a mock function with given fields: ctx, rc

func (*Composer) ListTools

func (_m *Composer) ListTools(ctx context.Context, rc *consumer.RoutableConsumer) ([]mcp.Tool, error)

ListTools provides a mock function with given fields: ctx, rc

func (*Composer) ReadResource

func (_m *Composer) ReadResource(ctx context.Context, rc *consumer.RoutableConsumer, uri string) (json.RawMessage, error)

ReadResource provides a mock function with given fields: ctx, rc, uri

type Composer_CallTool_Call

type Composer_CallTool_Call struct {
	*mock.Call
}

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

func (*Composer_CallTool_Call) Return

func (*Composer_CallTool_Call) Run

type Composer_Expecter

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

func (*Composer_Expecter) CallTool

func (_e *Composer_Expecter) CallTool(ctx interface{}, rc interface{}, name interface{}, arguments interface{}) *Composer_CallTool_Call

CallTool is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer
  • name string
  • arguments json.RawMessage

func (*Composer_Expecter) GetPrompt

func (_e *Composer_Expecter) GetPrompt(ctx interface{}, rc interface{}, name interface{}, arguments interface{}) *Composer_GetPrompt_Call

GetPrompt is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer
  • name string
  • arguments map[string]string

func (*Composer_Expecter) ListPrompts

func (_e *Composer_Expecter) ListPrompts(ctx interface{}, rc interface{}) *Composer_ListPrompts_Call

ListPrompts is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer

func (*Composer_Expecter) ListResourceTemplates

func (_e *Composer_Expecter) ListResourceTemplates(ctx interface{}, rc interface{}) *Composer_ListResourceTemplates_Call

ListResourceTemplates is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer

func (*Composer_Expecter) ListResources

func (_e *Composer_Expecter) ListResources(ctx interface{}, rc interface{}) *Composer_ListResources_Call

ListResources is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer

func (*Composer_Expecter) ListTools

func (_e *Composer_Expecter) ListTools(ctx interface{}, rc interface{}) *Composer_ListTools_Call

ListTools is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer

func (*Composer_Expecter) ReadResource

func (_e *Composer_Expecter) ReadResource(ctx interface{}, rc interface{}, uri interface{}) *Composer_ReadResource_Call

ReadResource is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer
  • uri string

type Composer_GetPrompt_Call

type Composer_GetPrompt_Call struct {
	*mock.Call
}

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

func (*Composer_GetPrompt_Call) Return

func (*Composer_GetPrompt_Call) Run

func (*Composer_GetPrompt_Call) RunAndReturn

type Composer_ListPrompts_Call

type Composer_ListPrompts_Call struct {
	*mock.Call
}

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

func (*Composer_ListPrompts_Call) Return

func (*Composer_ListPrompts_Call) Run

func (*Composer_ListPrompts_Call) RunAndReturn

type Composer_ListResourceTemplates_Call

type Composer_ListResourceTemplates_Call struct {
	*mock.Call
}

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

func (*Composer_ListResourceTemplates_Call) Return

func (*Composer_ListResourceTemplates_Call) Run

func (*Composer_ListResourceTemplates_Call) RunAndReturn

type Composer_ListResources_Call

type Composer_ListResources_Call struct {
	*mock.Call
}

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

func (*Composer_ListResources_Call) Return

func (*Composer_ListResources_Call) Run

func (*Composer_ListResources_Call) RunAndReturn

type Composer_ListTools_Call

type Composer_ListTools_Call struct {
	*mock.Call
}

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

func (*Composer_ListTools_Call) Return

func (*Composer_ListTools_Call) Run

func (*Composer_ListTools_Call) RunAndReturn

type Composer_ReadResource_Call

type Composer_ReadResource_Call struct {
	*mock.Call
}

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

func (*Composer_ReadResource_Call) Return

func (*Composer_ReadResource_Call) Run

func (*Composer_ReadResource_Call) RunAndReturn

type CredentialResolver

type CredentialResolver struct {
	mock.Mock
}

CredentialResolver is an autogenerated mock type for the CredentialResolver type

func NewCredentialResolver

func NewCredentialResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *CredentialResolver

NewCredentialResolver creates a new instance of CredentialResolver. 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 (*CredentialResolver) Apply

Apply provides a mock function with given fields: ctx, rc, reg, target

func (*CredentialResolver) EXPECT

type CredentialResolver_Apply_Call

type CredentialResolver_Apply_Call struct {
	*mock.Call
}

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

func (*CredentialResolver_Apply_Call) Return

func (*CredentialResolver_Apply_Call) Run

func (*CredentialResolver_Apply_Call) RunAndReturn

type CredentialResolver_Expecter

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

func (*CredentialResolver_Expecter) Apply

func (_e *CredentialResolver_Expecter) Apply(ctx interface{}, rc interface{}, reg interface{}, target interface{}) *CredentialResolver_Apply_Call

Apply is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer
  • reg *registry.Registry
  • target *mcp.Target

type RoleScoper

type RoleScoper struct {
	mock.Mock
}

RoleScoper is an autogenerated mock type for the RoleScoper type

func NewRoleScoper

func NewRoleScoper(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoleScoper

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

func (_m *RoleScoper) EXPECT() *RoleScoper_Expecter

func (*RoleScoper) Scope

Scope provides a mock function with given fields: ctx, rc, data

type RoleScoper_Expecter

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

func (*RoleScoper_Expecter) Scope

func (_e *RoleScoper_Expecter) Scope(ctx interface{}, rc interface{}, data interface{}) *RoleScoper_Scope_Call

Scope is a helper method to define mock.On call

  • ctx context.Context
  • rc *consumer.RoutableConsumer
  • data *consumer.Data

type RoleScoper_Scope_Call

type RoleScoper_Scope_Call struct {
	*mock.Call
}

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

func (*RoleScoper_Scope_Call) Return

func (*RoleScoper_Scope_Call) Run

Jump to

Keyboard shortcuts

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