db

package
v0.0.0-...-cbd8b7f Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package main is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromDB

func GetFromDB(db DB, key string) int

Types

type DB

type DB interface {
	Get(key string) (int, error)
}

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

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) Get

func (m *MockDB) Get(key string) (int, error)

Get mocks base method.

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) Get

func (mr *MockDBMockRecorder) Get(key any) *gomock.Call

Get indicates an expected call of Get.

Jump to

Keyboard shortcuts

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