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 IDeliveryRepo

type IDeliveryRepo interface {
	persistence.IRepository[*model.Delivery]
}

IDeliveryRepo represents a repository interface for managing delivery entities.

type MockIDeliveryRepo

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

MockIDeliveryRepo is a mock of IDeliveryRepo interface.

func NewMockIDeliveryRepo

func NewMockIDeliveryRepo(ctrl *gomock.Controller) *MockIDeliveryRepo

NewMockIDeliveryRepo creates a new mock instance.

func (*MockIDeliveryRepo) Create

func (m *MockIDeliveryRepo) Create(c context.Context, item *model.Delivery) error

Create mocks base method.

func (*MockIDeliveryRepo) Delete

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

Delete mocks base method.

func (*MockIDeliveryRepo) EXPECT

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

func (*MockIDeliveryRepo) GetByID

func (m *MockIDeliveryRepo) GetByID(c context.Context, id string) (*model.Delivery, error)

GetByID mocks base method.

func (*MockIDeliveryRepo) List

List mocks base method.

func (*MockIDeliveryRepo) Update

func (m *MockIDeliveryRepo) Update(c context.Context, item *model.Delivery) error

Update mocks base method.

type MockIDeliveryRepoMockRecorder

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

MockIDeliveryRepoMockRecorder is the mock recorder for MockIDeliveryRepo.

func (*MockIDeliveryRepoMockRecorder) Create

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

Create indicates an expected call of Create.

func (*MockIDeliveryRepoMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockIDeliveryRepoMockRecorder) GetByID

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

GetByID indicates an expected call of GetByID.

func (*MockIDeliveryRepoMockRecorder) List

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

List indicates an expected call of List.

func (*MockIDeliveryRepoMockRecorder) Update

func (mr *MockIDeliveryRepoMockRecorder) 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