mock_db

package
v0.0.0-...-bd08887 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_db is a generated GoMock package.

Index

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) AddSpot

func (m *MockDB) AddSpot(ctx context.Context, details db.SpotDetails) (interface{}, error)

AddSpot mocks base method

func (*MockDB) DeleteSpot

func (m *MockDB) DeleteSpot(ctx context.Context, spotName string) (int64, error)

DeleteSpot mocks base method

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) GetSpot

func (m *MockDB) GetSpot(ctx context.Context, spotName string) (*spot.Details, error)

GetSpot mocks base method

func (*MockDB) UpdateSpot

func (m *MockDB) UpdateSpot(ctx context.Context, spotName string, update db.SpotDetails) (int64, int64, error)

UpdateSpot mocks base method

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

Jump to

Keyboard shortcuts

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