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 IRestaurantRepo

type IRestaurantRepo interface {
	persistence.IRepository[*model.Restaurant]

	CreateReservation(c context.Context, restaurant *model.Restaurant, reservation *model.Order) error
}

IRestaurantRepo is an interface that defines the methods that the restaurant repository should implement

type MockIRestaurantRepo

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

MockIRestaurantRepo is a mock of IRestaurantRepo interface.

func NewMockIRestaurantRepo

func NewMockIRestaurantRepo(ctrl *gomock.Controller) *MockIRestaurantRepo

NewMockIRestaurantRepo creates a new mock instance.

func (*MockIRestaurantRepo) Create

Create mocks base method.

func (*MockIRestaurantRepo) CreateReservation

func (m *MockIRestaurantRepo) CreateReservation(c context.Context, restaurant *model.Restaurant, reservation *model.Order) error

CreateReservation mocks base method.

func (*MockIRestaurantRepo) Delete

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

Delete mocks base method.

func (*MockIRestaurantRepo) EXPECT

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

func (*MockIRestaurantRepo) GetByID

GetByID mocks base method.

func (*MockIRestaurantRepo) List

List mocks base method.

func (*MockIRestaurantRepo) Update

Update mocks base method.

type MockIRestaurantRepoMockRecorder

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

MockIRestaurantRepoMockRecorder is the mock recorder for MockIRestaurantRepo.

func (*MockIRestaurantRepoMockRecorder) Create

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

Create indicates an expected call of Create.

func (*MockIRestaurantRepoMockRecorder) CreateReservation

func (mr *MockIRestaurantRepoMockRecorder) CreateReservation(c, restaurant, reservation any) *gomock.Call

CreateReservation indicates an expected call of CreateReservation.

func (*MockIRestaurantRepoMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockIRestaurantRepoMockRecorder) GetByID

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

GetByID indicates an expected call of GetByID.

func (*MockIRestaurantRepoMockRecorder) List

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

List indicates an expected call of List.

func (*MockIRestaurantRepoMockRecorder) Update

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