mocks

package
v0.0.0-...-e4c28f5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 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 Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Store) DeleteCustomerByID

func (_m *Store) DeleteCustomerByID(ctx context.Context, id string) error

DeleteCustomerByID provides a mock function with given fields: ctx, id

func (*Store) DeleteOrderByID

func (_m *Store) DeleteOrderByID(ctx context.Context, id string) error

DeleteOrderByID provides a mock function with given fields: ctx, id

func (*Store) DeleteProductByID

func (_m *Store) DeleteProductByID(ctx context.Context, id string) error

DeleteProductByID provides a mock function with given fields: ctx, id

func (*Store) GetCustomerByID

func (_m *Store) GetCustomerByID(ctx context.Context, id string) (v1.Customer, error)

GetCustomerByID provides a mock function with given fields: ctx, id

func (*Store) GetCustomers

func (_m *Store) GetCustomers(ctx context.Context) ([]v1.Customer, error)

GetCustomers provides a mock function with given fields: ctx

func (*Store) GetOrderByID

func (_m *Store) GetOrderByID(ctx context.Context, id string) (v1.Order, error)

GetOrderByID provides a mock function with given fields: ctx, id

func (*Store) GetOrders

func (_m *Store) GetOrders(ctx context.Context) ([]v1.Order, error)

GetOrders provides a mock function with given fields: ctx

func (*Store) GetProductByID

func (_m *Store) GetProductByID(ctx context.Context, id string) (v1.Product, error)

GetProductByID provides a mock function with given fields: ctx, id

func (*Store) GetProducts

func (_m *Store) GetProducts(ctx context.Context) ([]v1.Product, error)

GetProducts provides a mock function with given fields: ctx

func (*Store) PostCustomer

func (_m *Store) PostCustomer(ctx context.Context, customer v1.Customer) (v1.Customer, error)

PostCustomer provides a mock function with given fields: ctx, customer

func (*Store) PostOrder

func (_m *Store) PostOrder(ctx context.Context, order v1.Order) (v1.Order, error)

PostOrder provides a mock function with given fields: ctx, order

func (*Store) PostProduct

func (_m *Store) PostProduct(ctx context.Context, product v1.Product) (v1.Product, error)

PostProduct provides a mock function with given fields: ctx, product

func (*Store) UpdateCustomerByID

func (_m *Store) UpdateCustomerByID(ctx context.Context, customer v1.Customer) (v1.Customer, error)

UpdateCustomerByID provides a mock function with given fields: ctx, customer

func (*Store) UpdateOrderByID

func (_m *Store) UpdateOrderByID(ctx context.Context, order v1.Order) (v1.Order, error)

UpdateOrderByID provides a mock function with given fields: ctx, order

func (*Store) UpdateProductByID

func (_m *Store) UpdateProductByID(ctx context.Context, product v1.Product) (v1.Product, error)

UpdateProductByID provides a mock function with given fields: ctx, product

Jump to

Keyboard shortcuts

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