 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type MockPushService
- type MockPushService_Expecter
- type MockPushService_PushBatch_Call
- func (_c *MockPushService_PushBatch_Call) Return(_a0 error) *MockPushService_PushBatch_Call
- func (_c *MockPushService_PushBatch_Call) Run(run func(ctx context.Context, req *model.PushRequest)) *MockPushService_PushBatch_Call
- func (_c *MockPushService_PushBatch_Call) RunAndReturn(run func(context.Context, *model.PushRequest) error) *MockPushService_PushBatch_Call
 
- type MockPushService_Push_Call
- func (_c *MockPushService_Push_Call) Return(_a0 *connect.Response[pushv1.PushResponse], _a1 error) *MockPushService_Push_Call
- func (_c *MockPushService_Push_Call) Run(run func(ctx context.Context, req *connect.Request[pushv1.PushRequest])) *MockPushService_Push_Call
- func (_c *MockPushService_Push_Call) RunAndReturn(...) *MockPushService_Push_Call
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPushService ¶
MockPushService is an autogenerated mock type for the PushService type
func NewMockPushService ¶
func NewMockPushService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPushService
    NewMockPushService creates a new instance of MockPushService. 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 (*MockPushService) EXPECT ¶
func (_m *MockPushService) EXPECT() *MockPushService_Expecter
func (*MockPushService) Push ¶
func (_m *MockPushService) Push(ctx context.Context, req *connect.Request[pushv1.PushRequest]) (*connect.Response[pushv1.PushResponse], error)
Push provides a mock function with given fields: ctx, req
func (*MockPushService) PushBatch ¶ added in v1.15.0
func (_m *MockPushService) PushBatch(ctx context.Context, req *model.PushRequest) error
PushBatch provides a mock function with given fields: ctx, req
type MockPushService_Expecter ¶
type MockPushService_Expecter struct {
	// contains filtered or unexported fields
}
    func (*MockPushService_Expecter) Push ¶
func (_e *MockPushService_Expecter) Push(ctx interface{}, req interface{}) *MockPushService_Push_Call
Push is a helper method to define mock.On call
- ctx context.Context
- req *connect.Request[pushv1.PushRequest]
func (*MockPushService_Expecter) PushBatch ¶ added in v1.15.0
func (_e *MockPushService_Expecter) PushBatch(ctx interface{}, req interface{}) *MockPushService_PushBatch_Call
PushBatch is a helper method to define mock.On call
- ctx context.Context
- req *model.PushRequest
type MockPushService_PushBatch_Call ¶ added in v1.15.0
MockPushService_PushBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushBatch'
func (*MockPushService_PushBatch_Call) Return ¶ added in v1.15.0
func (_c *MockPushService_PushBatch_Call) Return(_a0 error) *MockPushService_PushBatch_Call
func (*MockPushService_PushBatch_Call) Run ¶ added in v1.15.0
func (_c *MockPushService_PushBatch_Call) Run(run func(ctx context.Context, req *model.PushRequest)) *MockPushService_PushBatch_Call
func (*MockPushService_PushBatch_Call) RunAndReturn ¶ added in v1.15.0
func (_c *MockPushService_PushBatch_Call) RunAndReturn(run func(context.Context, *model.PushRequest) error) *MockPushService_PushBatch_Call
type MockPushService_Push_Call ¶
MockPushService_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'
func (*MockPushService_Push_Call) Return ¶
func (_c *MockPushService_Push_Call) Return(_a0 *connect.Response[pushv1.PushResponse], _a1 error) *MockPushService_Push_Call
func (*MockPushService_Push_Call) Run ¶
func (_c *MockPushService_Push_Call) Run(run func(ctx context.Context, req *connect.Request[pushv1.PushRequest])) *MockPushService_Push_Call
func (*MockPushService_Push_Call) RunAndReturn ¶
func (_c *MockPushService_Push_Call) RunAndReturn(run func(context.Context, *connect.Request[pushv1.PushRequest]) (*connect.Response[pushv1.PushResponse], error)) *MockPushService_Push_Call