Documentation ¶
Overview ¶
Package stores is a generated GoMock package.
Index ¶
- type MockPerson
- func (m *MockPerson) Create(ctx *gofr.Context, data models.Person) ([]models.Person, error)
- func (m *MockPerson) Delete(ctx *gofr.Context, id string) error
- func (m *MockPerson) EXPECT() *MockPersonMockRecorder
- func (m *MockPerson) Get(ctx *gofr.Context, filter models.Person) []models.Person
- func (m *MockPerson) Update(ctx *gofr.Context, data models.Person) ([]models.Person, error)
- type MockPersonMockRecorder
- func (mr *MockPersonMockRecorder) Create(ctx, data interface{}) *gomock.Call
- func (mr *MockPersonMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockPersonMockRecorder) Get(ctx, filter interface{}) *gomock.Call
- func (mr *MockPersonMockRecorder) Update(ctx, data interface{}) *gomock.Call
- type Person
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPerson ¶
type MockPerson struct {
// contains filtered or unexported fields
}
MockPerson is a mock of Person interface.
func NewMockPerson ¶
func NewMockPerson(ctrl *gomock.Controller) *MockPerson
NewMockPerson creates a new mock instance.
func (*MockPerson) Delete ¶
func (m *MockPerson) Delete(ctx *gofr.Context, id string) error
Delete mocks base method.
func (*MockPerson) EXPECT ¶
func (m *MockPerson) EXPECT() *MockPersonMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPersonMockRecorder ¶
type MockPersonMockRecorder struct {
// contains filtered or unexported fields
}
MockPersonMockRecorder is the mock recorder for MockPerson.
func (*MockPersonMockRecorder) Create ¶
func (mr *MockPersonMockRecorder) Create(ctx, data interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPersonMockRecorder) Delete ¶
func (mr *MockPersonMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPersonMockRecorder) Get ¶
func (mr *MockPersonMockRecorder) Get(ctx, filter interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockPersonMockRecorder) Update ¶
func (mr *MockPersonMockRecorder) Update(ctx, data interface{}) *gomock.Call
Update indicates an expected call of Update.
Click to show internal directories.
Click to hide internal directories.