mock

package
v0.0.0-...-be5a897 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWalletRepository

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

MockWalletRepository is a mock of WalletRepository interface.

func NewMockWalletRepository

func NewMockWalletRepository(ctrl *gomock.Controller) *MockWalletRepository

NewMockWalletRepository creates a new mock instance.

func (*MockWalletRepository) CreateWallet

func (m *MockWalletRepository) CreateWallet(wallet *entity.Wallet) (*entity.Wallet, error)

CreateWallet mocks base method.

func (*MockWalletRepository) DeleteWallet

func (m *MockWalletRepository) DeleteWallet(id uint64) error

DeleteWallet mocks base method.

func (*MockWalletRepository) EXPECT

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

func (*MockWalletRepository) ExistsWithName

func (m *MockWalletRepository) ExistsWithName(userId uint64, name string) bool

ExistsWithName mocks base method.

func (*MockWalletRepository) GetWalletById

func (m *MockWalletRepository) GetWalletById(id uint64) (*entity.Wallet, error)

GetWalletById mocks base method.

func (*MockWalletRepository) GetWalletsByUserId

func (m *MockWalletRepository) GetWalletsByUserId(userId uint64) ([]entity.Wallet, error)

GetWalletsByUserId mocks base method.

func (*MockWalletRepository) UpdateWallet

func (m *MockWalletRepository) UpdateWallet(wallet *entity.Wallet) (*entity.Wallet, error)

UpdateWallet mocks base method.

func (*MockWalletRepository) WalletBelongsToUser

func (m *MockWalletRepository) WalletBelongsToUser(id, userId uint64) bool

WalletBelongsToUser mocks base method.

type MockWalletRepositoryMockRecorder

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

MockWalletRepositoryMockRecorder is the mock recorder for MockWalletRepository.

func (*MockWalletRepositoryMockRecorder) CreateWallet

func (mr *MockWalletRepositoryMockRecorder) CreateWallet(wallet any) *gomock.Call

CreateWallet indicates an expected call of CreateWallet.

func (*MockWalletRepositoryMockRecorder) DeleteWallet

func (mr *MockWalletRepositoryMockRecorder) DeleteWallet(id any) *gomock.Call

DeleteWallet indicates an expected call of DeleteWallet.

func (*MockWalletRepositoryMockRecorder) ExistsWithName

func (mr *MockWalletRepositoryMockRecorder) ExistsWithName(userId, name any) *gomock.Call

ExistsWithName indicates an expected call of ExistsWithName.

func (*MockWalletRepositoryMockRecorder) GetWalletById

func (mr *MockWalletRepositoryMockRecorder) GetWalletById(id any) *gomock.Call

GetWalletById indicates an expected call of GetWalletById.

func (*MockWalletRepositoryMockRecorder) GetWalletsByUserId

func (mr *MockWalletRepositoryMockRecorder) GetWalletsByUserId(userId any) *gomock.Call

GetWalletsByUserId indicates an expected call of GetWalletsByUserId.

func (*MockWalletRepositoryMockRecorder) UpdateWallet

func (mr *MockWalletRepositoryMockRecorder) UpdateWallet(wallet any) *gomock.Call

UpdateWallet indicates an expected call of UpdateWallet.

func (*MockWalletRepositoryMockRecorder) WalletBelongsToUser

func (mr *MockWalletRepositoryMockRecorder) WalletBelongsToUser(id, userId any) *gomock.Call

WalletBelongsToUser indicates an expected call of WalletBelongsToUser.

Jump to

Keyboard shortcuts

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