Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBookstoreClient
- func (m *MockBookstoreClient) CreateBook(arg0 context.Context, arg1 *api.CreateBookRequest, arg2 ...grpc.CallOption) (*api.Book, error)
- func (m *MockBookstoreClient) CreateShelf(arg0 context.Context, arg1 *api.CreateShelfRequest, arg2 ...grpc.CallOption) (*api.Shelf, error)
- func (m *MockBookstoreClient) DeleteBook(arg0 context.Context, arg1 *api.DeleteBookRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockBookstoreClient) DeleteShelf(arg0 context.Context, arg1 *api.DeleteShelfRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error)
- func (m *MockBookstoreClient) EXPECT() *MockBookstoreClientMockRecorder
- func (m *MockBookstoreClient) GetBook(arg0 context.Context, arg1 *api.GetBookRequest, arg2 ...grpc.CallOption) (*api.Book, error)
- func (m *MockBookstoreClient) GetShelf(arg0 context.Context, arg1 *api.GetShelfRequest, arg2 ...grpc.CallOption) (*api.Shelf, error)
- func (m *MockBookstoreClient) ListBooks(arg0 context.Context, arg1 *api.ListBooksRequest, arg2 ...grpc.CallOption) (*api.ListBooksResponse, error)
- func (m *MockBookstoreClient) ListShelves(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*api.ListShelvesResponse, error)
- type MockBookstoreClientMockRecorder
- func (mr *MockBookstoreClientMockRecorder) CreateBook(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBookstoreClientMockRecorder) CreateShelf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBookstoreClientMockRecorder) DeleteBook(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBookstoreClientMockRecorder) DeleteShelf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBookstoreClientMockRecorder) GetBook(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBookstoreClientMockRecorder) GetShelf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBookstoreClientMockRecorder) ListBooks(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBookstoreClientMockRecorder) ListShelves(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockBookstoreServer
- func (m *MockBookstoreServer) CreateBook(arg0 context.Context, arg1 *api.CreateBookRequest) (*api.Book, error)
- func (m *MockBookstoreServer) CreateShelf(arg0 context.Context, arg1 *api.CreateShelfRequest) (*api.Shelf, error)
- func (m *MockBookstoreServer) DeleteBook(arg0 context.Context, arg1 *api.DeleteBookRequest) (*emptypb.Empty, error)
- func (m *MockBookstoreServer) DeleteShelf(arg0 context.Context, arg1 *api.DeleteShelfRequest) (*emptypb.Empty, error)
- func (m *MockBookstoreServer) EXPECT() *MockBookstoreServerMockRecorder
- func (m *MockBookstoreServer) GetBook(arg0 context.Context, arg1 *api.GetBookRequest) (*api.Book, error)
- func (m *MockBookstoreServer) GetShelf(arg0 context.Context, arg1 *api.GetShelfRequest) (*api.Shelf, error)
- func (m *MockBookstoreServer) ListBooks(arg0 context.Context, arg1 *api.ListBooksRequest) (*api.ListBooksResponse, error)
- func (m *MockBookstoreServer) ListShelves(arg0 context.Context, arg1 *emptypb.Empty) (*api.ListShelvesResponse, error)
- type MockBookstoreServerMockRecorder
- func (mr *MockBookstoreServerMockRecorder) CreateBook(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookstoreServerMockRecorder) CreateShelf(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookstoreServerMockRecorder) DeleteBook(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookstoreServerMockRecorder) DeleteShelf(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookstoreServerMockRecorder) GetBook(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookstoreServerMockRecorder) GetShelf(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookstoreServerMockRecorder) ListBooks(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookstoreServerMockRecorder) ListShelves(arg0, arg1 interface{}) *gomock.Call
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 ¶
func (m *MockBookstoreClient) EXPECT() *MockBookstoreClientMockRecorder
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 ¶
func (m *MockBookstoreClient) ListBooks(arg0 context.Context, arg1 *api.ListBooksRequest, arg2 ...grpc.CallOption) (*api.ListBooksResponse, error)
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 ¶
func (m *MockBookstoreServer) EXPECT() *MockBookstoreServerMockRecorder
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 ¶
func (m *MockBookstoreServer) ListBooks(arg0 context.Context, arg1 *api.ListBooksRequest) (*api.ListBooksResponse, error)
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