mocks

package
v0.0.0-...-844d4e4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDiners

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

MockDiners is a mock of Diners interface.

func NewMockDiners

func NewMockDiners(ctrl *gomock.Controller) *MockDiners

NewMockDiners creates a new mock instance.

func (*MockDiners) Create

func (m *MockDiners) Create(ctx context.Context, newDiner *diner.Diner) (*diner.Diner, error)

Create mocks base method.

func (*MockDiners) Delete

func (m *MockDiners) Delete(ctx context.Context, id int64) error

Delete mocks base method.

func (*MockDiners) EXPECT

func (m *MockDiners) EXPECT() *MockDinersMockRecorder

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

func (*MockDiners) GetAll

func (m *MockDiners) GetAll(ctx context.Context, page, limit int64) (*repository.PaginationResultDiner, error)

GetAll mocks base method.

func (*MockDiners) GetByID

func (m *MockDiners) GetByID(ctx context.Context, id int64) (*diner.Diner, error)

GetByID mocks base method.

func (*MockDiners) GetTotalCount

func (m *MockDiners) GetTotalCount(ctx context.Context) (int64, error)

GetTotalCount mocks base method.

type MockDinersMockRecorder

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

MockDinersMockRecorder is the mock recorder for MockDiners.

func (*MockDinersMockRecorder) Create

func (mr *MockDinersMockRecorder) Create(ctx, newDiner interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockDinersMockRecorder) Delete

func (mr *MockDinersMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockDinersMockRecorder) GetAll

func (mr *MockDinersMockRecorder) GetAll(ctx, page, limit interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockDinersMockRecorder) GetByID

func (mr *MockDinersMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockDinersMockRecorder) GetTotalCount

func (mr *MockDinersMockRecorder) GetTotalCount(ctx interface{}) *gomock.Call

GetTotalCount indicates an expected call of GetTotalCount.

type MockMenus

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

MockMenus is a mock of Menus interface.

func NewMockMenus

func NewMockMenus(ctrl *gomock.Controller) *MockMenus

NewMockMenus creates a new mock instance.

func (*MockMenus) Create

func (m *MockMenus) Create(ctx context.Context, newMenu *menu.Menu) (*menu.Menu, error)

Create mocks base method.

func (*MockMenus) Delete

func (m *MockMenus) Delete(ctx context.Context, id int64) error

Delete mocks base method.

func (*MockMenus) EXPECT

func (m *MockMenus) EXPECT() *MockMenusMockRecorder

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

func (*MockMenus) GetAll

func (m *MockMenus) GetAll(ctx context.Context, page, limit int64) (*repository.PaginationResultMenu, error)

GetAll mocks base method.

func (*MockMenus) GetByID

func (m *MockMenus) GetByID(ctx context.Context, id int64) (*menu.Menu, error)

GetByID mocks base method.

func (*MockMenus) GetByTopCount

func (m *MockMenus) GetByTopCount(ctx context.Context, count int) ([]menu.Menu, error)

GetByTopCount mocks base method.

func (*MockMenus) GetTotalCount

func (m *MockMenus) GetTotalCount(ctx context.Context) (int64, error)

GetTotalCount mocks base method.

type MockMenusMockRecorder

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

MockMenusMockRecorder is the mock recorder for MockMenus.

func (*MockMenusMockRecorder) Create

func (mr *MockMenusMockRecorder) Create(ctx, newMenu interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockMenusMockRecorder) Delete

func (mr *MockMenusMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockMenusMockRecorder) GetAll

func (mr *MockMenusMockRecorder) GetAll(ctx, page, limit interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockMenusMockRecorder) GetByID

func (mr *MockMenusMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockMenusMockRecorder) GetByTopCount

func (mr *MockMenusMockRecorder) GetByTopCount(ctx, count interface{}) *gomock.Call

GetByTopCount indicates an expected call of GetByTopCount.

func (*MockMenusMockRecorder) GetTotalCount

func (mr *MockMenusMockRecorder) GetTotalCount(ctx interface{}) *gomock.Call

GetTotalCount indicates an expected call of GetTotalCount.

type MockOrders

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

MockOrders is a mock of Orders interface.

func NewMockOrders

func NewMockOrders(ctrl *gomock.Controller) *MockOrders

NewMockOrders creates a new mock instance.

func (*MockOrders) Create

func (m *MockOrders) Create(ctx context.Context, newOrder *order.Request) (*order.Request, error)

Create mocks base method.

func (*MockOrders) Delete

func (m *MockOrders) Delete(ctx context.Context, id int) error

Delete mocks base method.

func (*MockOrders) EXPECT

func (m *MockOrders) EXPECT() *MockOrdersMockRecorder

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

func (*MockOrders) GetByID

func (m *MockOrders) GetByID(ctx context.Context, dinerID int64) ([]order.Response, error)

GetByID mocks base method.

type MockOrdersMockRecorder

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

MockOrdersMockRecorder is the mock recorder for MockOrders.

func (*MockOrdersMockRecorder) Create

func (mr *MockOrdersMockRecorder) Create(ctx, newOrder interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockOrdersMockRecorder) Delete

func (mr *MockOrdersMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockOrdersMockRecorder) GetByID

func (mr *MockOrdersMockRecorder) GetByID(ctx, dinerID interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

Jump to

Keyboard shortcuts

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