Documentation ¶
Overview ¶
Package mock_db is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) AddSpot(ctx context.Context, details db.SpotDetails) (interface{}, error)
- func (m *MockDB) DeleteSpot(ctx context.Context, spotName string) (int64, error)
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) GetSpot(ctx context.Context, spotName string) (*spot.Details, error)
- func (m *MockDB) UpdateSpot(ctx context.Context, spotName string, update db.SpotDetails) (int64, int64, error)
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) AddSpot(ctx, details interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) DeleteSpot(ctx, spotName interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetSpot(ctx, spotName interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) UpdateSpot(ctx, spotName, update interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance
func (*MockDB) DeleteSpot ¶
DeleteSpot mocks base method
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB
func (*MockDBMockRecorder) AddSpot ¶
func (mr *MockDBMockRecorder) AddSpot(ctx, details interface{}) *gomock.Call
AddSpot indicates an expected call of AddSpot
func (*MockDBMockRecorder) DeleteSpot ¶
func (mr *MockDBMockRecorder) DeleteSpot(ctx, spotName interface{}) *gomock.Call
DeleteSpot indicates an expected call of DeleteSpot
func (*MockDBMockRecorder) GetSpot ¶
func (mr *MockDBMockRecorder) GetSpot(ctx, spotName interface{}) *gomock.Call
GetSpot indicates an expected call of GetSpot
func (*MockDBMockRecorder) UpdateSpot ¶
func (mr *MockDBMockRecorder) UpdateSpot(ctx, spotName, update interface{}) *gomock.Call
UpdateSpot indicates an expected call of UpdateSpot
Click to show internal directories.
Click to hide internal directories.