mocks

package
v0.0.0-...-a474e13 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookGRPCHandlerServer

type BookGRPCHandlerServer struct {
	pb.UnimplementedBookGRPCHandlerServer
	mock.Mock
}

BookGRPCHandlerServer is an autogenerated mock type for the BookGRPCHandlerServer type

func NewBookGRPCHandlerServer

func NewBookGRPCHandlerServer(t mockConstructorTestingTNewBookGRPCHandlerServer) *BookGRPCHandlerServer

NewBookGRPCHandlerServer creates a new instance of BookGRPCHandlerServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BookGRPCHandlerServer) Destroy

Destroy provides a mock function with given fields: _a0, _a1

func (*BookGRPCHandlerServer) Fetch

Fetch provides a mock function with given fields: _a0, _a1

func (*BookGRPCHandlerServer) Show

Show provides a mock function with given fields: _a0, _a1

func (*BookGRPCHandlerServer) Store

Store provides a mock function with given fields: _a0, _a1

func (*BookGRPCHandlerServer) Update

Update provides a mock function with given fields: _a0, _a1

type IBookGRPCRepository

type IBookGRPCRepository struct {
	mock.Mock
}

IBookGRPCRepository is an autogenerated mock type for the IBookGRPCRepository type

func NewIBookGRPCRepository

func NewIBookGRPCRepository(t mockConstructorTestingTNewIBookGRPCRepository) *IBookGRPCRepository

NewIBookGRPCRepository creates a new instance of IBookGRPCRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IBookGRPCRepository) All

func (_m *IBookGRPCRepository) All(ctx context.Context, arg *entity.Book) ([]*entity.Book, error)

All provides a mock function with given fields: ctx, arg

func (*IBookGRPCRepository) Erase

func (_m *IBookGRPCRepository) Erase(ctx context.Context, arg *entity.Book) error

Erase provides a mock function with given fields: ctx, arg

func (*IBookGRPCRepository) Find

func (_m *IBookGRPCRepository) Find(ctx context.Context, arg *entity.Book) (*entity.Book, error)

Find provides a mock function with given fields: ctx, arg

func (*IBookGRPCRepository) Patch

func (_m *IBookGRPCRepository) Patch(ctx context.Context, arg *entity.Book) error

Patch provides a mock function with given fields: ctx, arg

func (*IBookGRPCRepository) Record

func (_m *IBookGRPCRepository) Record(ctx context.Context, arg *entity.Book) error

Record provides a mock function with given fields: ctx, arg

type IBookRepository

type IBookRepository struct {
	mock.Mock
}

IBookRepository is an autogenerated mock type for the IBookRepository type

func NewIBookRepository

func NewIBookRepository(t mockConstructorTestingTNewIBookRepository) *IBookRepository

NewIBookRepository creates a new instance of IBookRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IBookRepository) Delete

func (_m *IBookRepository) Delete(ctx context.Context, arg *entity.Book) error

Delete provides a mock function with given fields: ctx, arg

func (*IBookRepository) Insert

func (_m *IBookRepository) Insert(ctx context.Context, args ...*entity.Book) error

Insert provides a mock function with given fields: ctx, args

func (*IBookRepository) Select

func (_m *IBookRepository) Select(ctx context.Context, args ...string) ([]*entity.Book, error)

Select provides a mock function with given fields: ctx, args

func (*IBookRepository) Update

func (_m *IBookRepository) Update(ctx context.Context, arg *entity.Book) error

Update provides a mock function with given fields: ctx, arg

type IBookService

type IBookService struct {
	mock.Mock
}

IBookService is an autogenerated mock type for the IBookService type

func NewIBookService

func NewIBookService(t mockConstructorTestingTNewIBookService) *IBookService

NewIBookService creates a new instance of IBookService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IBookService) All

func (_m *IBookService) All(ctx context.Context, args ...string) ([]*entity.Book, error)

All provides a mock function with given fields: ctx, args

func (*IBookService) Erase

func (_m *IBookService) Erase(ctx context.Context, arg *entity.Book) error

Erase provides a mock function with given fields: ctx, arg

func (*IBookService) Find

func (_m *IBookService) Find(ctx context.Context, arg *entity.Book) (*entity.Book, error)

Find provides a mock function with given fields: ctx, arg

func (*IBookService) Patch

func (_m *IBookService) Patch(ctx context.Context, arg *entity.Book) error

Patch provides a mock function with given fields: ctx, arg

func (*IBookService) Record

func (_m *IBookService) Record(ctx context.Context, args ...*entity.Book) error

Record provides a mock function with given fields: ctx, args

type IStoreGRPCRepository

type IStoreGRPCRepository struct {
	mock.Mock
}

IStoreGRPCRepository is an autogenerated mock type for the IStoreGRPCRepository type

func NewIStoreGRPCRepository

func NewIStoreGRPCRepository(t mockConstructorTestingTNewIStoreGRPCRepository) *IStoreGRPCRepository

NewIStoreGRPCRepository creates a new instance of IStoreGRPCRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IStoreGRPCRepository) All

All provides a mock function with given fields: ctx

func (*IStoreGRPCRepository) Erase

func (_m *IStoreGRPCRepository) Erase(ctx context.Context, arg *entity.Store) error

Erase provides a mock function with given fields: ctx, arg

func (*IStoreGRPCRepository) Find

Find provides a mock function with given fields: ctx, arg

func (*IStoreGRPCRepository) Patch

func (_m *IStoreGRPCRepository) Patch(ctx context.Context, arg *entity.Store) error

Patch provides a mock function with given fields: ctx, arg

func (*IStoreGRPCRepository) Record

func (_m *IStoreGRPCRepository) Record(ctx context.Context, arg *entity.Store) error

Record provides a mock function with given fields: ctx, arg

type IStoreRepository

type IStoreRepository struct {
	mock.Mock
}

IStoreRepository is an autogenerated mock type for the IStoreRepository type

func NewIStoreRepository

func NewIStoreRepository(t mockConstructorTestingTNewIStoreRepository) *IStoreRepository

NewIStoreRepository creates a new instance of IStoreRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IStoreRepository) Delete

func (_m *IStoreRepository) Delete(ctx context.Context, arg *entity.Store) error

Delete provides a mock function with given fields: ctx, arg

func (*IStoreRepository) Insert

func (_m *IStoreRepository) Insert(ctx context.Context, args ...*entity.Store) error

Insert provides a mock function with given fields: ctx, args

func (*IStoreRepository) Select

func (_m *IStoreRepository) Select(ctx context.Context, args ...string) ([]*entity.Store, error)

Select provides a mock function with given fields: ctx, args

func (*IStoreRepository) Update

func (_m *IStoreRepository) Update(ctx context.Context, arg *entity.Store) error

Update provides a mock function with given fields: ctx, arg

type IStoreService

type IStoreService struct {
	mock.Mock
}

IStoreService is an autogenerated mock type for the IStoreService type

func NewIStoreService

func NewIStoreService(t mockConstructorTestingTNewIStoreService) *IStoreService

NewIStoreService creates a new instance of IStoreService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IStoreService) All

func (_m *IStoreService) All(ctx context.Context) ([]*entity.Store, error)

All provides a mock function with given fields: ctx

func (*IStoreService) Erase

func (_m *IStoreService) Erase(ctx context.Context, arg *entity.Store) error

Erase provides a mock function with given fields: ctx, arg

func (*IStoreService) Find

func (_m *IStoreService) Find(ctx context.Context, arg *entity.Store) (*entity.Store, error)

Find provides a mock function with given fields: ctx, arg

func (*IStoreService) Patch

func (_m *IStoreService) Patch(ctx context.Context, arg *entity.Store) error

Patch provides a mock function with given fields: ctx, arg

func (*IStoreService) Record

func (_m *IStoreService) Record(ctx context.Context, args ...*entity.Store) error

Record provides a mock function with given fields: ctx, args

type StoreGRPCHandlerServer

type StoreGRPCHandlerServer struct {
	pb.UnimplementedStoreGRPCHandlerServer
	mock.Mock
}

StoreGRPCHandlerServer is an autogenerated mock type for the StoreGRPCHandlerServer type

func NewStoreGRPCHandlerServer

func NewStoreGRPCHandlerServer(t mockConstructorTestingTNewStoreGRPCHandlerServer) *StoreGRPCHandlerServer

NewStoreGRPCHandlerServer creates a new instance of StoreGRPCHandlerServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StoreGRPCHandlerServer) Destroy

Destroy provides a mock function with given fields: _a0, _a1

func (*StoreGRPCHandlerServer) Fetch

Fetch provides a mock function with given fields: _a0, _a1

func (*StoreGRPCHandlerServer) Show

Show provides a mock function with given fields: _a0, _a1

func (*StoreGRPCHandlerServer) Store

Store provides a mock function with given fields: _a0, _a1

func (*StoreGRPCHandlerServer) Update

Update provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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