repo

package
v0.0.0-...-fefde71 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package repo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPaymentRepo

type IPaymentRepo interface {
	persistence.IRepository[*model.Payment]
}

IPaymentRepo is an interface for payment repository

type MockIPaymentRepo

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

MockIPaymentRepo is a mock of IPaymentRepo interface.

func NewMockIPaymentRepo

func NewMockIPaymentRepo(ctrl *gomock.Controller) *MockIPaymentRepo

NewMockIPaymentRepo creates a new mock instance.

func (*MockIPaymentRepo) Create

func (m *MockIPaymentRepo) Create(c context.Context, item *model.Payment) error

Create mocks base method.

func (*MockIPaymentRepo) Delete

func (m *MockIPaymentRepo) Delete(c context.Context, id string) error

Delete mocks base method.

func (*MockIPaymentRepo) EXPECT

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

func (*MockIPaymentRepo) GetByID

func (m *MockIPaymentRepo) GetByID(c context.Context, id string) (*model.Payment, error)

GetByID mocks base method.

func (*MockIPaymentRepo) List

List mocks base method.

func (*MockIPaymentRepo) Update

func (m *MockIPaymentRepo) Update(c context.Context, item *model.Payment) error

Update mocks base method.

type MockIPaymentRepoMockRecorder

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

MockIPaymentRepoMockRecorder is the mock recorder for MockIPaymentRepo.

func (*MockIPaymentRepoMockRecorder) Create

func (mr *MockIPaymentRepoMockRecorder) Create(c, item any) *gomock.Call

Create indicates an expected call of Create.

func (*MockIPaymentRepoMockRecorder) Delete

func (mr *MockIPaymentRepoMockRecorder) Delete(c, id any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIPaymentRepoMockRecorder) GetByID

func (mr *MockIPaymentRepoMockRecorder) GetByID(c, id any) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockIPaymentRepoMockRecorder) List

func (mr *MockIPaymentRepoMockRecorder) List(c, cond any) *gomock.Call

List indicates an expected call of List.

func (*MockIPaymentRepoMockRecorder) Update

func (mr *MockIPaymentRepoMockRecorder) Update(c, item any) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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