mocks

package
v0.0.0-...-461d2ee Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductService

type ProductService struct {
	mock.Mock
}

ProductService is an autogenerated mock type for the ProductService type

func (*ProductService) BuildProductImage

func (_m *ProductService) BuildProductImage(dto *ec.ProductDTO) *ec.ProductDTO

BuildProductImage provides a mock function with given fields: dto

func (*ProductService) GetProductDetailsByID

func (_m *ProductService) GetProductDetailsByID(ID string) (ec.ProductDTO, error)

GetProductDetailsByID provides a mock function with given fields: ID

func (*ProductService) GetProductJSONByID

func (_m *ProductService) GetProductJSONByID(ID string) (string, error)

GetProductJSONByID provides a mock function with given fields: ID

type ProductsRepository

type ProductsRepository struct {
	mock.Mock
}

ProductsRepository is an autogenerated mock type for the ProductsRepository type

func (*ProductsRepository) AddProduct

func (_m *ProductsRepository) AddProduct(ID string, data string) error

AddProduct provides a mock function with given fields: ID, data

func (*ProductsRepository) CreateTable

func (_m *ProductsRepository) CreateTable() error

CreateTable provides a mock function with given fields:

func (*ProductsRepository) DropTable

func (_m *ProductsRepository) DropTable() error

DropTable provides a mock function with given fields:

func (*ProductsRepository) Exists

func (_m *ProductsRepository) Exists() (bool, error)

Exists provides a mock function with given fields:

func (*ProductsRepository) GetAllProducts

func (_m *ProductsRepository) GetAllProducts() ([]ec.ProductDTO, error)

GetAllProducts provides a mock function with given fields:

func (*ProductsRepository) GetProductByID

func (_m *ProductsRepository) GetProductByID(ID string) (ec.ProductDTO, error)

GetProductByID provides a mock function with given fields: ID

func (*ProductsRepository) UpdateProductDataByID

func (_m *ProductsRepository) UpdateProductDataByID(ID string, newData string) error

UpdateProductDataByID provides a mock function with given fields: ID, newData

type StandsRepository

type StandsRepository struct {
	mock.Mock
}

StandsRepository is an autogenerated mock type for the StandsRepository type

func (*StandsRepository) GetAllStands

func (_m *StandsRepository) GetAllStands() ([]stands.StandDTO, error)

GetAllStands provides a mock function with given fields:

Jump to

Keyboard shortcuts

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