Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Pets = []core.Pet{
{ID: "A01", Category: "elk", Price: 12249.99},
{ID: "A02", Category: "ant", Price: 0.99},
{ID: "A03", Category: "cow", Price: 3449.99},
{ID: "A04", Category: "pig", Price: 749.99},
{ID: "A05", Category: "dog", Price: 249.99},
{ID: "A06", Category: "cat", Price: 124.99},
{ID: "A07", Category: "bee", Price: 2.99},
{ID: "A08", Category: "eel", Price: 49.99},
{ID: "A09", Category: "owl", Price: 449.99},
{ID: "A10", Category: "fox", Price: 349.99},
{ID: "A11", Category: "hen", Price: 19.99},
{ID: "A12", Category: "bat", Price: 249.99},
{ID: "A13", Category: "rat", Price: 224.99},
{ID: "A14", Category: "emu", Price: 924.99},
{ID: "A15", Category: "gnu", Price: 11449.99},
{ID: "A16", Category: "ape", Price: 9449.99},
{ID: "A17", Category: "koi", Price: 74.99},
}
Functions ¶
func SetupCreatorWithPets ¶
Types ¶
type MockPetCreator ¶
type MockPetCreator struct {
// contains filtered or unexported fields
}
MockPetCreator is a mock of PetCreator interface.
func NewMockPetCreator ¶
func NewMockPetCreator(ctrl *gomock.Controller) *MockPetCreator
NewMockPetCreator creates a new mock instance.
func (*MockPetCreator) EXPECT ¶
func (m *MockPetCreator) EXPECT() *MockPetCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPetCreatorMockRecorder ¶
type MockPetCreatorMockRecorder struct {
// contains filtered or unexported fields
}
MockPetCreatorMockRecorder is the mock recorder for MockPetCreator.
func (*MockPetCreatorMockRecorder) CreatePet ¶
func (mr *MockPetCreatorMockRecorder) CreatePet(arg0, arg1 interface{}) *gomock.Call
CreatePet indicates an expected call of CreatePet.
type MockPetFetcher ¶
type MockPetFetcher struct {
// contains filtered or unexported fields
}
MockPetFetcher is a mock of PetFetcher interface.
func NewMockPetFetcher ¶
func NewMockPetFetcher(ctrl *gomock.Controller) *MockPetFetcher
NewMockPetFetcher creates a new mock instance.
func (*MockPetFetcher) EXPECT ¶
func (m *MockPetFetcher) EXPECT() *MockPetFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPetFetcher) LookupPetsAfterKey ¶
func (m *MockPetFetcher) LookupPetsAfterKey(arg0 context.Context, arg1 string, arg2 int) ([]core.Pet, error)
LookupPetsAfterKey mocks base method.
type MockPetFetcherMockRecorder ¶
type MockPetFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockPetFetcherMockRecorder is the mock recorder for MockPetFetcher.
func (*MockPetFetcherMockRecorder) LookupPet ¶
func (mr *MockPetFetcherMockRecorder) LookupPet(arg0, arg1 interface{}) *gomock.Call
LookupPet indicates an expected call of LookupPet.
func (*MockPetFetcherMockRecorder) LookupPetsAfterKey ¶
func (mr *MockPetFetcherMockRecorder) LookupPetsAfterKey(arg0, arg1, arg2 interface{}) *gomock.Call
LookupPetsAfterKey indicates an expected call of LookupPetsAfterKey.