mocks

package
v0.0.0-...-6c45f4e Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mocks 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) Close

func (m *MockDB) Close() error

Close mocks base method.

func (*MockDB) CreateTable

func (m *MockDB) CreateTable() error

CreateTable 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) GetMaxIP

func (m *MockDB) GetMaxIP() (uint32, error)

GetMaxIP mocks base method.

func (*MockDB) GetOldestIP

func (m *MockDB) GetOldestIP() (uint32, error)

GetOldestIP mocks base method.

func (*MockDB) Open

func (m *MockDB) Open() error

Open mocks base method.

func (*MockDB) Ping

func (m *MockDB) Ping() error

Ping mocks base method.

func (*MockDB) Save

func (m *MockDB) Save(arg0 types.Tasks) error

Save mocks base method.

type MockDBMockRecorder

type MockDBMockRecorder struct {
	// contains filtered or unexported fields
}

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) Close

func (mr *MockDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDBMockRecorder) CreateTable

func (mr *MockDBMockRecorder) CreateTable() *gomock.Call

CreateTable indicates an expected call of CreateTable.

func (*MockDBMockRecorder) GetMaxIP

func (mr *MockDBMockRecorder) GetMaxIP() *gomock.Call

GetMaxIP indicates an expected call of GetMaxIP.

func (*MockDBMockRecorder) GetOldestIP

func (mr *MockDBMockRecorder) GetOldestIP() *gomock.Call

GetOldestIP indicates an expected call of GetOldestIP.

func (*MockDBMockRecorder) Open

func (mr *MockDBMockRecorder) Open() *gomock.Call

Open indicates an expected call of Open.

func (*MockDBMockRecorder) Ping

func (mr *MockDBMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDBMockRecorder) Save

func (mr *MockDBMockRecorder) Save(arg0 interface{}) *gomock.Call

Save indicates an expected call of Save.

Jump to

Keyboard shortcuts

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