Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./service.go
Generated by this command:
mockgen -source=./service.go -package=membermocks --destination=../../mocks/member.mock.go -typed Service
Package membermocks is a generated GoMock package.
Index ¶
- type MockService
- type MockServiceMockRecorder
- type ServiceActivateMembershipCall
- func (c *ServiceActivateMembershipCall) Do(f func(context.Context, domain.Member) error) *ServiceActivateMembershipCall
- func (c *ServiceActivateMembershipCall) DoAndReturn(f func(context.Context, domain.Member) error) *ServiceActivateMembershipCall
- func (c *ServiceActivateMembershipCall) Return(arg0 error) *ServiceActivateMembershipCall
- type ServiceGetMembershipInfoCall
- func (c *ServiceGetMembershipInfoCall) Do(f func(context.Context, int64) (domain.Member, error)) *ServiceGetMembershipInfoCall
- func (c *ServiceGetMembershipInfoCall) DoAndReturn(f func(context.Context, int64) (domain.Member, error)) *ServiceGetMembershipInfoCall
- func (c *ServiceGetMembershipInfoCall) Return(arg0 domain.Member, arg1 error) *ServiceGetMembershipInfoCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) ActivateMembership ¶
ActivateMembership mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GetMembershipInfo ¶
GetMembershipInfo mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) ActivateMembership ¶
func (mr *MockServiceMockRecorder) ActivateMembership(ctx, member any) *ServiceActivateMembershipCall
ActivateMembership indicates an expected call of ActivateMembership.
func (*MockServiceMockRecorder) GetMembershipInfo ¶
func (mr *MockServiceMockRecorder) GetMembershipInfo(ctx, uid any) *ServiceGetMembershipInfoCall
GetMembershipInfo indicates an expected call of GetMembershipInfo.
type ServiceActivateMembershipCall ¶
ServiceActivateMembershipCall wrap *gomock.Call
func (*ServiceActivateMembershipCall) Do ¶
func (c *ServiceActivateMembershipCall) Do(f func(context.Context, domain.Member) error) *ServiceActivateMembershipCall
Do rewrite *gomock.Call.Do
func (*ServiceActivateMembershipCall) DoAndReturn ¶
func (c *ServiceActivateMembershipCall) DoAndReturn(f func(context.Context, domain.Member) error) *ServiceActivateMembershipCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceActivateMembershipCall) Return ¶
func (c *ServiceActivateMembershipCall) Return(arg0 error) *ServiceActivateMembershipCall
Return rewrite *gomock.Call.Return
type ServiceGetMembershipInfoCall ¶
ServiceGetMembershipInfoCall wrap *gomock.Call
func (*ServiceGetMembershipInfoCall) Do ¶
func (c *ServiceGetMembershipInfoCall) Do(f func(context.Context, int64) (domain.Member, error)) *ServiceGetMembershipInfoCall
Do rewrite *gomock.Call.Do
func (*ServiceGetMembershipInfoCall) DoAndReturn ¶
func (c *ServiceGetMembershipInfoCall) DoAndReturn(f func(context.Context, int64) (domain.Member, error)) *ServiceGetMembershipInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceGetMembershipInfoCall) Return ¶
func (c *ServiceGetMembershipInfoCall) Return(arg0 domain.Member, arg1 error) *ServiceGetMembershipInfoCall
Return rewrite *gomock.Call.Return