membermocks

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

func (m *MockService) ActivateMembership(ctx context.Context, member domain.Member) error

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

func (m *MockService) GetMembershipInfo(ctx context.Context, uid int64) (domain.Member, error)

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

type ServiceActivateMembershipCall struct {
	*gomock.Call
}

ServiceActivateMembershipCall wrap *gomock.Call

func (*ServiceActivateMembershipCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceActivateMembershipCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceActivateMembershipCall) Return

Return rewrite *gomock.Call.Return

type ServiceGetMembershipInfoCall

type ServiceGetMembershipInfoCall struct {
	*gomock.Call
}

ServiceGetMembershipInfoCall wrap *gomock.Call

func (*ServiceGetMembershipInfoCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceGetMembershipInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceGetMembershipInfoCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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