mocks

package
v0.0.0-...-302b2cd Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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 MockBookstoreClient

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

MockBookstoreClient is a mock of BookstoreClient interface

func NewMockBookstoreClient

func NewMockBookstoreClient(ctrl *gomock.Controller) *MockBookstoreClient

NewMockBookstoreClient creates a new mock instance

func (*MockBookstoreClient) CreateBook

func (m *MockBookstoreClient) CreateBook(arg0 context.Context, arg1 *api.CreateBookRequest, arg2 ...grpc.CallOption) (*api.Book, error)

CreateBook mocks base method

func (*MockBookstoreClient) CreateShelf

func (m *MockBookstoreClient) CreateShelf(arg0 context.Context, arg1 *api.CreateShelfRequest, arg2 ...grpc.CallOption) (*api.Shelf, error)

CreateShelf mocks base method

func (*MockBookstoreClient) DeleteBook

func (m *MockBookstoreClient) DeleteBook(arg0 context.Context, arg1 *api.DeleteBookRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error)

DeleteBook mocks base method

func (*MockBookstoreClient) DeleteShelf

func (m *MockBookstoreClient) DeleteShelf(arg0 context.Context, arg1 *api.DeleteShelfRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error)

DeleteShelf mocks base method

func (*MockBookstoreClient) EXPECT

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

func (*MockBookstoreClient) GetBook

func (m *MockBookstoreClient) GetBook(arg0 context.Context, arg1 *api.GetBookRequest, arg2 ...grpc.CallOption) (*api.Book, error)

GetBook mocks base method

func (*MockBookstoreClient) GetShelf

func (m *MockBookstoreClient) GetShelf(arg0 context.Context, arg1 *api.GetShelfRequest, arg2 ...grpc.CallOption) (*api.Shelf, error)

GetShelf mocks base method

func (*MockBookstoreClient) ListBooks

ListBooks mocks base method

func (*MockBookstoreClient) ListShelves

func (m *MockBookstoreClient) ListShelves(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*api.ListShelvesResponse, error)

ListShelves mocks base method

type MockBookstoreClientMockRecorder

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

MockBookstoreClientMockRecorder is the mock recorder for MockBookstoreClient

func (*MockBookstoreClientMockRecorder) CreateBook

func (mr *MockBookstoreClientMockRecorder) CreateBook(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateBook indicates an expected call of CreateBook

func (*MockBookstoreClientMockRecorder) CreateShelf

func (mr *MockBookstoreClientMockRecorder) CreateShelf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateShelf indicates an expected call of CreateShelf

func (*MockBookstoreClientMockRecorder) DeleteBook

func (mr *MockBookstoreClientMockRecorder) DeleteBook(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DeleteBook indicates an expected call of DeleteBook

func (*MockBookstoreClientMockRecorder) DeleteShelf

func (mr *MockBookstoreClientMockRecorder) DeleteShelf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DeleteShelf indicates an expected call of DeleteShelf

func (*MockBookstoreClientMockRecorder) GetBook

func (mr *MockBookstoreClientMockRecorder) GetBook(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetBook indicates an expected call of GetBook

func (*MockBookstoreClientMockRecorder) GetShelf

func (mr *MockBookstoreClientMockRecorder) GetShelf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetShelf indicates an expected call of GetShelf

func (*MockBookstoreClientMockRecorder) ListBooks

func (mr *MockBookstoreClientMockRecorder) ListBooks(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListBooks indicates an expected call of ListBooks

func (*MockBookstoreClientMockRecorder) ListShelves

func (mr *MockBookstoreClientMockRecorder) ListShelves(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListShelves indicates an expected call of ListShelves

type MockBookstoreServer

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

MockBookstoreServer is a mock of BookstoreServer interface

func NewMockBookstoreServer

func NewMockBookstoreServer(ctrl *gomock.Controller) *MockBookstoreServer

NewMockBookstoreServer creates a new mock instance

func (*MockBookstoreServer) CreateBook

func (m *MockBookstoreServer) CreateBook(arg0 context.Context, arg1 *api.CreateBookRequest) (*api.Book, error)

CreateBook mocks base method

func (*MockBookstoreServer) CreateShelf

func (m *MockBookstoreServer) CreateShelf(arg0 context.Context, arg1 *api.CreateShelfRequest) (*api.Shelf, error)

CreateShelf mocks base method

func (*MockBookstoreServer) DeleteBook

func (m *MockBookstoreServer) DeleteBook(arg0 context.Context, arg1 *api.DeleteBookRequest) (*emptypb.Empty, error)

DeleteBook mocks base method

func (*MockBookstoreServer) DeleteShelf

func (m *MockBookstoreServer) DeleteShelf(arg0 context.Context, arg1 *api.DeleteShelfRequest) (*emptypb.Empty, error)

DeleteShelf mocks base method

func (*MockBookstoreServer) EXPECT

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

func (*MockBookstoreServer) GetBook

func (m *MockBookstoreServer) GetBook(arg0 context.Context, arg1 *api.GetBookRequest) (*api.Book, error)

GetBook mocks base method

func (*MockBookstoreServer) GetShelf

func (m *MockBookstoreServer) GetShelf(arg0 context.Context, arg1 *api.GetShelfRequest) (*api.Shelf, error)

GetShelf mocks base method

func (*MockBookstoreServer) ListBooks

ListBooks mocks base method

func (*MockBookstoreServer) ListShelves

func (m *MockBookstoreServer) ListShelves(arg0 context.Context, arg1 *emptypb.Empty) (*api.ListShelvesResponse, error)

ListShelves mocks base method

type MockBookstoreServerMockRecorder

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

MockBookstoreServerMockRecorder is the mock recorder for MockBookstoreServer

func (*MockBookstoreServerMockRecorder) CreateBook

func (mr *MockBookstoreServerMockRecorder) CreateBook(arg0, arg1 interface{}) *gomock.Call

CreateBook indicates an expected call of CreateBook

func (*MockBookstoreServerMockRecorder) CreateShelf

func (mr *MockBookstoreServerMockRecorder) CreateShelf(arg0, arg1 interface{}) *gomock.Call

CreateShelf indicates an expected call of CreateShelf

func (*MockBookstoreServerMockRecorder) DeleteBook

func (mr *MockBookstoreServerMockRecorder) DeleteBook(arg0, arg1 interface{}) *gomock.Call

DeleteBook indicates an expected call of DeleteBook

func (*MockBookstoreServerMockRecorder) DeleteShelf

func (mr *MockBookstoreServerMockRecorder) DeleteShelf(arg0, arg1 interface{}) *gomock.Call

DeleteShelf indicates an expected call of DeleteShelf

func (*MockBookstoreServerMockRecorder) GetBook

func (mr *MockBookstoreServerMockRecorder) GetBook(arg0, arg1 interface{}) *gomock.Call

GetBook indicates an expected call of GetBook

func (*MockBookstoreServerMockRecorder) GetShelf

func (mr *MockBookstoreServerMockRecorder) GetShelf(arg0, arg1 interface{}) *gomock.Call

GetShelf indicates an expected call of GetShelf

func (*MockBookstoreServerMockRecorder) ListBooks

func (mr *MockBookstoreServerMockRecorder) ListBooks(arg0, arg1 interface{}) *gomock.Call

ListBooks indicates an expected call of ListBooks

func (*MockBookstoreServerMockRecorder) ListShelves

func (mr *MockBookstoreServerMockRecorder) ListShelves(arg0, arg1 interface{}) *gomock.Call

ListShelves indicates an expected call of ListShelves

Jump to

Keyboard shortcuts

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