Documentation ¶
Overview ¶
Package repo is a generated GoMock package.
Index ¶
- type IPaymentRepo
- type MockIPaymentRepo
- func (m *MockIPaymentRepo) Create(c context.Context, item *model.Payment) error
- func (m *MockIPaymentRepo) Delete(c context.Context, id string) error
- func (m *MockIPaymentRepo) EXPECT() *MockIPaymentRepoMockRecorder
- func (m *MockIPaymentRepo) GetByID(c context.Context, id string) (*model.Payment, error)
- func (m *MockIPaymentRepo) List(c context.Context, cond utils.Pagination) ([]*model.Payment, int, error)
- func (m *MockIPaymentRepo) Update(c context.Context, item *model.Payment) error
- type MockIPaymentRepoMockRecorder
- func (mr *MockIPaymentRepoMockRecorder) Create(c, item any) *gomock.Call
- func (mr *MockIPaymentRepoMockRecorder) Delete(c, id any) *gomock.Call
- func (mr *MockIPaymentRepoMockRecorder) GetByID(c, id any) *gomock.Call
- func (mr *MockIPaymentRepoMockRecorder) List(c, cond any) *gomock.Call
- func (mr *MockIPaymentRepoMockRecorder) Update(c, item any) *gomock.Call
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) Delete ¶
func (m *MockIPaymentRepo) Delete(c context.Context, id string) error
Delete mocks base method.
func (*MockIPaymentRepo) EXPECT ¶
func (m *MockIPaymentRepo) EXPECT() *MockIPaymentRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
Click to show internal directories.
Click to hide internal directories.