adaptersmocks

package
v0.0.0-...-760d8ea Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGRPC

type MockGRPC struct {
	mock.Mock
}

MockGRPC is an autogenerated mock type for the GRPC type

func NewMockGRPC

func NewMockGRPC(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGRPC

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

func (_m *MockGRPC) EXPECT() *MockGRPC_Expecter

func (*MockGRPC) Report

func (_m *MockGRPC) Report(service string, err error)

Report provides a mock function with given fields: service, err

type MockGRPCCallback

type MockGRPCCallback[In any, Out any] struct {
	mock.Mock
}

MockGRPCCallback is an autogenerated mock type for the GRPCCallback type

func NewMockGRPCCallback

func NewMockGRPCCallback[In any, Out any](t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGRPCCallback[In, Out]

NewMockGRPCCallback creates a new instance of MockGRPCCallback. 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 (*MockGRPCCallback[In, Out]) EXPECT

func (_m *MockGRPCCallback[In, Out]) EXPECT() *MockGRPCCallback_Expecter[In, Out]

func (*MockGRPCCallback[In, Out]) Execute

func (_m *MockGRPCCallback[In, Out]) Execute(ctx context.Context, in In) (Out, error)

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

type MockGRPCCallback_Execute_Call

type MockGRPCCallback_Execute_Call[In any, Out any] struct {
	*mock.Call
}

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

func (*MockGRPCCallback_Execute_Call[In, Out]) Return

func (_c *MockGRPCCallback_Execute_Call[In, Out]) Return(_a0 Out, _a1 error) *MockGRPCCallback_Execute_Call[In, Out]

func (*MockGRPCCallback_Execute_Call[In, Out]) Run

func (_c *MockGRPCCallback_Execute_Call[In, Out]) Run(run func(ctx context.Context, in In)) *MockGRPCCallback_Execute_Call[In, Out]

func (*MockGRPCCallback_Execute_Call[In, Out]) RunAndReturn

func (_c *MockGRPCCallback_Execute_Call[In, Out]) RunAndReturn(run func(context.Context, In) (Out, error)) *MockGRPCCallback_Execute_Call[In, Out]

type MockGRPCCallback_Expecter

type MockGRPCCallback_Expecter[In any, Out any] struct {
	// contains filtered or unexported fields
}

func (*MockGRPCCallback_Expecter[In, Out]) Execute

func (_e *MockGRPCCallback_Expecter[In, Out]) Execute(ctx interface{}, in interface{}) *MockGRPCCallback_Execute_Call[In, Out]

Execute is a helper method to define mock.On call

  • ctx context.Context
  • in In

type MockGRPC_Expecter

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

func (*MockGRPC_Expecter) Report

func (_e *MockGRPC_Expecter) Report(service interface{}, err interface{}) *MockGRPC_Report_Call

Report is a helper method to define mock.On call

  • service string
  • err error

type MockGRPC_Report_Call

type MockGRPC_Report_Call struct {
	*mock.Call
}

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

func (*MockGRPC_Report_Call) Return

func (*MockGRPC_Report_Call) Run

func (_c *MockGRPC_Report_Call) Run(run func(service string, err error)) *MockGRPC_Report_Call

func (*MockGRPC_Report_Call) RunAndReturn

func (_c *MockGRPC_Report_Call) RunAndReturn(run func(string, error)) *MockGRPC_Report_Call

type MockGin

type MockGin struct {
	mock.Mock
}

MockGin is an autogenerated mock type for the Gin type

func NewMockGin

func NewMockGin(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGin

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

func (_m *MockGin) EXPECT() *MockGin_Expecter

func (*MockGin) Middleware

func (_m *MockGin) Middleware() gin.HandlerFunc

Middleware provides a mock function with given fields:

type MockGin_Expecter

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

func (*MockGin_Expecter) Middleware

func (_e *MockGin_Expecter) Middleware() *MockGin_Middleware_Call

Middleware is a helper method to define mock.On call

type MockGin_Middleware_Call

type MockGin_Middleware_Call struct {
	*mock.Call
}

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

func (*MockGin_Middleware_Call) Return

func (*MockGin_Middleware_Call) Run

func (_c *MockGin_Middleware_Call) Run(run func()) *MockGin_Middleware_Call

func (*MockGin_Middleware_Call) RunAndReturn

func (_c *MockGin_Middleware_Call) RunAndReturn(run func() gin.HandlerFunc) *MockGin_Middleware_Call

Jump to

Keyboard shortcuts

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