mocks

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Count

func (m *MockRepository) Count(ctx context.Context, filter *account.Filter) (int64, error)

Count mocks base method.

func (*MockRepository) CountMembers

func (m *MockRepository) CountMembers(ctx context.Context, filter *account.MemberFilter) (int64, error)

CountMembers mocks base method.

func (*MockRepository) Create

func (m *MockRepository) Create(ctx context.Context, account *model.Account) (uint64, error)

Create mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(ctx context.Context, id uint64) error

Delete mocks base method.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) FetchList

func (m *MockRepository) FetchList(ctx context.Context, filter *account.Filter, order *account.ListOrder, pagination *repository.Pagination) ([]*model.Account, error)

FetchList mocks base method.

func (*MockRepository) FetchListMembers

func (m *MockRepository) FetchListMembers(ctx context.Context, filter *account.MemberFilter, order *account.MemberListOrder, pagination *repository.Pagination) ([]*model.AccountMember, error)

FetchListMembers mocks base method.

func (*MockRepository) Get

func (m *MockRepository) Get(ctx context.Context, id uint64) (*model.Account, error)

Get mocks base method.

func (*MockRepository) GetByTitle

func (m *MockRepository) GetByTitle(ctx context.Context, title string) (*model.Account, error)

GetByTitle mocks base method.

func (*MockRepository) IsAdmin

func (m *MockRepository) IsAdmin(ctx context.Context, userID, accountID uint64) bool

IsAdmin mocks base method.

func (*MockRepository) IsMember

func (m *MockRepository) IsMember(ctx context.Context, userID, accountID uint64) bool

IsMember mocks base method.

func (*MockRepository) LinkMember

func (m *MockRepository) LinkMember(ctx context.Context, account *model.Account, isAdmin bool, members ...*model.User) error

LinkMember mocks base method.

func (*MockRepository) LoadPermissions

func (m *MockRepository) LoadPermissions(ctx context.Context, account *model.Account, user *model.User) error

LoadPermissions mocks base method.

func (*MockRepository) Member

func (m *MockRepository) Member(ctx context.Context, userID, accountID uint64) (*model.AccountMember, error)

Member mocks base method.

func (*MockRepository) MemberByID

func (m *MockRepository) MemberByID(ctx context.Context, id uint64) (*model.AccountMember, error)

MemberByID mocks base method.

func (*MockRepository) SetMemberRoles

func (m *MockRepository) SetMemberRoles(ctx context.Context, account *model.Account, member *model.User, roles ...string) error

SetMemberRoles mocks base method.

func (*MockRepository) UnlinkMember

func (m *MockRepository) UnlinkMember(ctx context.Context, account *model.Account, members ...*model.User) error

UnlinkMember mocks base method.

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, id uint64, account *model.Account) error

Update mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Count

func (mr *MockRepositoryMockRecorder) Count(ctx, filter interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockRepositoryMockRecorder) CountMembers

func (mr *MockRepositoryMockRecorder) CountMembers(ctx, filter interface{}) *gomock.Call

CountMembers indicates an expected call of CountMembers.

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(ctx, account interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) FetchList

func (mr *MockRepositoryMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call

FetchList indicates an expected call of FetchList.

func (*MockRepositoryMockRecorder) FetchListMembers

func (mr *MockRepositoryMockRecorder) FetchListMembers(ctx, filter, order, pagination interface{}) *gomock.Call

FetchListMembers indicates an expected call of FetchListMembers.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) GetByTitle

func (mr *MockRepositoryMockRecorder) GetByTitle(ctx, title interface{}) *gomock.Call

GetByTitle indicates an expected call of GetByTitle.

func (*MockRepositoryMockRecorder) IsAdmin

func (mr *MockRepositoryMockRecorder) IsAdmin(ctx, userID, accountID interface{}) *gomock.Call

IsAdmin indicates an expected call of IsAdmin.

func (*MockRepositoryMockRecorder) IsMember

func (mr *MockRepositoryMockRecorder) IsMember(ctx, userID, accountID interface{}) *gomock.Call

IsMember indicates an expected call of IsMember.

func (*MockRepositoryMockRecorder) LinkMember

func (mr *MockRepositoryMockRecorder) LinkMember(ctx, account, isAdmin interface{}, members ...interface{}) *gomock.Call

LinkMember indicates an expected call of LinkMember.

func (*MockRepositoryMockRecorder) LoadPermissions

func (mr *MockRepositoryMockRecorder) LoadPermissions(ctx, account, user interface{}) *gomock.Call

LoadPermissions indicates an expected call of LoadPermissions.

func (*MockRepositoryMockRecorder) Member

func (mr *MockRepositoryMockRecorder) Member(ctx, userID, accountID interface{}) *gomock.Call

Member indicates an expected call of Member.

func (*MockRepositoryMockRecorder) MemberByID

func (mr *MockRepositoryMockRecorder) MemberByID(ctx, id interface{}) *gomock.Call

MemberByID indicates an expected call of MemberByID.

func (*MockRepositoryMockRecorder) SetMemberRoles

func (mr *MockRepositoryMockRecorder) SetMemberRoles(ctx, account, member interface{}, roles ...interface{}) *gomock.Call

SetMemberRoles indicates an expected call of SetMemberRoles.

func (*MockRepositoryMockRecorder) UnlinkMember

func (mr *MockRepositoryMockRecorder) UnlinkMember(ctx, account interface{}, members ...interface{}) *gomock.Call

UnlinkMember indicates an expected call of UnlinkMember.

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, id, account interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockUsecase

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

MockUsecase is a mock of Usecase interface.

func NewMockUsecase

func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase

NewMockUsecase creates a new mock instance.

func (*MockUsecase) Count

func (m *MockUsecase) Count(ctx context.Context, filter *account.Filter) (int64, error)

Count mocks base method.

func (*MockUsecase) CountMembers

func (m *MockUsecase) CountMembers(ctx context.Context, filter *account.MemberFilter) (int64, error)

CountMembers mocks base method.

func (*MockUsecase) Delete

func (m *MockUsecase) Delete(ctx context.Context, id uint64) error

Delete mocks base method.

func (*MockUsecase) EXPECT

func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUsecase) FetchList

func (m *MockUsecase) FetchList(ctx context.Context, filter *account.Filter, order *account.ListOrder, pagination *repository.Pagination) ([]*model.Account, error)

FetchList mocks base method.

func (*MockUsecase) FetchListMembers

func (m *MockUsecase) FetchListMembers(ctx context.Context, filter *account.MemberFilter, order *account.MemberListOrder, pagination *repository.Pagination) ([]*model.AccountMember, error)

FetchListMembers mocks base method.

func (*MockUsecase) Get

func (m *MockUsecase) Get(ctx context.Context, id uint64) (*model.Account, error)

Get mocks base method.

func (*MockUsecase) GetByTitle

func (m *MockUsecase) GetByTitle(ctx context.Context, title string) (*model.Account, error)

GetByTitle mocks base method.

func (*MockUsecase) InviteMember

func (m *MockUsecase) InviteMember(ctx context.Context, accountID uint64, email string, roles ...string) (*model.AccountMember, error)

InviteMember mocks base method.

func (*MockUsecase) LinkMember

func (m *MockUsecase) LinkMember(ctx context.Context, account *model.Account, isAdmin bool, members ...*model.User) error

LinkMember mocks base method.

func (*MockUsecase) Register

func (m *MockUsecase) Register(ctx context.Context, ownerObj *model.User, accountObj *model.Account, password string) (uint64, error)

Register mocks base method.

func (*MockUsecase) SetAccountMemeberRoles

func (m *MockUsecase) SetAccountMemeberRoles(ctx context.Context, accountID, userID uint64, roles ...string) (*model.AccountMember, error)

SetAccountMemeberRoles mocks base method.

func (*MockUsecase) SetMemberRoles

func (m *MockUsecase) SetMemberRoles(ctx context.Context, memberID uint64, roles ...string) (*model.AccountMember, error)

SetMemberRoles mocks base method.

func (*MockUsecase) Store

func (m *MockUsecase) Store(ctx context.Context, account *model.Account) (uint64, error)

Store mocks base method.

func (*MockUsecase) UnlinkAccountMember

func (m *MockUsecase) UnlinkAccountMember(ctx context.Context, memberID uint64) error

UnlinkAccountMember mocks base method.

func (*MockUsecase) UnlinkMember

func (m *MockUsecase) UnlinkMember(ctx context.Context, account *model.Account, members ...*model.User) error

UnlinkMember mocks base method.

type MockUsecaseMockRecorder

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

MockUsecaseMockRecorder is the mock recorder for MockUsecase.

func (*MockUsecaseMockRecorder) Count

func (mr *MockUsecaseMockRecorder) Count(ctx, filter interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockUsecaseMockRecorder) CountMembers

func (mr *MockUsecaseMockRecorder) CountMembers(ctx, filter interface{}) *gomock.Call

CountMembers indicates an expected call of CountMembers.

func (*MockUsecaseMockRecorder) Delete

func (mr *MockUsecaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUsecaseMockRecorder) FetchList

func (mr *MockUsecaseMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call

FetchList indicates an expected call of FetchList.

func (*MockUsecaseMockRecorder) FetchListMembers

func (mr *MockUsecaseMockRecorder) FetchListMembers(ctx, filter, order, pagination interface{}) *gomock.Call

FetchListMembers indicates an expected call of FetchListMembers.

func (*MockUsecaseMockRecorder) Get

func (mr *MockUsecaseMockRecorder) Get(ctx, id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockUsecaseMockRecorder) GetByTitle

func (mr *MockUsecaseMockRecorder) GetByTitle(ctx, title interface{}) *gomock.Call

GetByTitle indicates an expected call of GetByTitle.

func (*MockUsecaseMockRecorder) InviteMember

func (mr *MockUsecaseMockRecorder) InviteMember(ctx, accountID, email interface{}, roles ...interface{}) *gomock.Call

InviteMember indicates an expected call of InviteMember.

func (*MockUsecaseMockRecorder) LinkMember

func (mr *MockUsecaseMockRecorder) LinkMember(ctx, account, isAdmin interface{}, members ...interface{}) *gomock.Call

LinkMember indicates an expected call of LinkMember.

func (*MockUsecaseMockRecorder) Register

func (mr *MockUsecaseMockRecorder) Register(ctx, ownerObj, accountObj, password interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockUsecaseMockRecorder) SetAccountMemeberRoles

func (mr *MockUsecaseMockRecorder) SetAccountMemeberRoles(ctx, accountID, userID interface{}, roles ...interface{}) *gomock.Call

SetAccountMemeberRoles indicates an expected call of SetAccountMemeberRoles.

func (*MockUsecaseMockRecorder) SetMemberRoles

func (mr *MockUsecaseMockRecorder) SetMemberRoles(ctx, memberID interface{}, roles ...interface{}) *gomock.Call

SetMemberRoles indicates an expected call of SetMemberRoles.

func (*MockUsecaseMockRecorder) Store

func (mr *MockUsecaseMockRecorder) Store(ctx, account interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockUsecaseMockRecorder) UnlinkAccountMember

func (mr *MockUsecaseMockRecorder) UnlinkAccountMember(ctx, memberID interface{}) *gomock.Call

UnlinkAccountMember indicates an expected call of UnlinkAccountMember.

func (*MockUsecaseMockRecorder) UnlinkMember

func (mr *MockUsecaseMockRecorder) UnlinkMember(ctx, account interface{}, members ...interface{}) *gomock.Call

UnlinkMember indicates an expected call of UnlinkMember.

Jump to

Keyboard shortcuts

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