stores

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package stores is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer interface {
	Get(ctx *gofr.Context, name string) ([]models.Customer, error)
	Create(ctx *gofr.Context, model models.Customer) error
	Delete(ctx *gofr.Context, name string) (int, error)
}

type MockCustomer

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

MockCustomer is a mock of Customer interface.

func NewMockCustomer

func NewMockCustomer(ctrl *gomock.Controller) *MockCustomer

NewMockCustomer creates a new mock instance.

func (*MockCustomer) Create

func (m *MockCustomer) Create(ctx *gofr.Context, model models.Customer) error

Create mocks base method.

func (*MockCustomer) Delete

func (m *MockCustomer) Delete(ctx *gofr.Context, name string) (int, error)

Delete mocks base method.

func (*MockCustomer) EXPECT

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

func (*MockCustomer) Get

func (m *MockCustomer) Get(ctx *gofr.Context, name string) ([]models.Customer, error)

Get mocks base method.

type MockCustomerMockRecorder

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

MockCustomerMockRecorder is the mock recorder for MockCustomer.

func (*MockCustomerMockRecorder) Create

func (mr *MockCustomerMockRecorder) Create(ctx, model interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockCustomerMockRecorder) Delete

func (mr *MockCustomerMockRecorder) Delete(ctx, name interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCustomerMockRecorder) Get

func (mr *MockCustomerMockRecorder) Get(ctx, name interface{}) *gomock.Call

Get indicates an expected call of Get.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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