Documentation ¶
Index ¶
- type MockGRPC
- type MockGRPCCallback
- type MockGRPCCallback_Execute_Call
- func (_c *MockGRPCCallback_Execute_Call[In, Out]) Return(_a0 Out, _a1 error) *MockGRPCCallback_Execute_Call[In, Out]
- func (_c *MockGRPCCallback_Execute_Call[In, Out]) Run(run func(ctx context.Context, in In)) *MockGRPCCallback_Execute_Call[In, Out]
- func (_c *MockGRPCCallback_Execute_Call[In, Out]) RunAndReturn(run func(context.Context, In) (Out, error)) *MockGRPCCallback_Execute_Call[In, Out]
- type MockGRPCCallback_Expecter
- type MockGRPC_Expecter
- type MockGRPC_Report_Call
- type MockGin
- type MockGin_Expecter
- type MockGin_Middleware_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGRPC ¶
MockGRPC is an autogenerated mock type for the GRPC type
func NewMockGRPC ¶
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
type MockGRPCCallback ¶
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]
type MockGRPCCallback_Execute_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 ¶
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 (_c *MockGRPC_Report_Call) Return() *MockGRPC_Report_Call
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 ¶
MockGin is an autogenerated mock type for the Gin type
func NewMockGin ¶
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 ¶
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 (_c *MockGin_Middleware_Call) Return(_a0 gin.HandlerFunc) *MockGin_Middleware_Call
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