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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forwarder

type Forwarder struct {
	mock.Mock
}

Forwarder is an autogenerated mock type for the Forwarder type

func NewForwarder

func NewForwarder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Forwarder

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

func (_m *Forwarder) EXPECT() *Forwarder_Expecter

func (*Forwarder) Forward

Forward provides a mock function with given fields: ctx, in

type Forwarder_Expecter

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

func (*Forwarder_Expecter) Forward

func (_e *Forwarder_Expecter) Forward(ctx interface{}, in interface{}) *Forwarder_Forward_Call

Forward is a helper method to define mock.On call

  • ctx context.Context
  • in proxy.ForwardInput

type Forwarder_Forward_Call

type Forwarder_Forward_Call struct {
	*mock.Call
}

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

func (*Forwarder_Forward_Call) Return

func (*Forwarder_Forward_Call) Run

func (*Forwarder_Forward_Call) RunAndReturn

type ProviderInvoker

type ProviderInvoker struct {
	mock.Mock
}

ProviderInvoker is an autogenerated mock type for the ProviderInvoker type

func NewProviderInvoker

func NewProviderInvoker(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProviderInvoker

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

func (*ProviderInvoker) Invoke

Invoke provides a mock function with given fields: ctx, bk, req

func (*ProviderInvoker) InvokeStream

InvokeStream provides a mock function with given fields: ctx, bk, req

type ProviderInvoker_Expecter

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

func (*ProviderInvoker_Expecter) Invoke

func (_e *ProviderInvoker_Expecter) Invoke(ctx interface{}, bk interface{}, req interface{}) *ProviderInvoker_Invoke_Call

Invoke is a helper method to define mock.On call

  • ctx context.Context
  • bk *registry.Registry
  • req *infracontext.RequestContext

func (*ProviderInvoker_Expecter) InvokeStream

func (_e *ProviderInvoker_Expecter) InvokeStream(ctx interface{}, bk interface{}, req interface{}) *ProviderInvoker_InvokeStream_Call

InvokeStream is a helper method to define mock.On call

  • ctx context.Context
  • bk *registry.Registry
  • req *infracontext.RequestContext

type ProviderInvoker_InvokeStream_Call

type ProviderInvoker_InvokeStream_Call struct {
	*mock.Call
}

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

func (*ProviderInvoker_InvokeStream_Call) Return

func (*ProviderInvoker_InvokeStream_Call) Run

type ProviderInvoker_Invoke_Call

type ProviderInvoker_Invoke_Call struct {
	*mock.Call
}

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

func (*ProviderInvoker_Invoke_Call) Return

func (*ProviderInvoker_Invoke_Call) Run

Jump to

Keyboard shortcuts

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