mock

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB is a mock of DB interface.

func NewDB

func NewDB(ctrl *gomock.Controller) *DB

NewDB creates a new mock instance.

func (*DB) Close

func (m *DB) Close() error

Close mocks base method.

func (*DB) EXPECT

func (m *DB) EXPECT() *DBMockRecorder

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

func (*DB) Get

func (m *DB) Get(arg0 context.Context, arg1 string) ([]byte, error)

Get mocks base method.

func (*DB) GetKeys

func (m *DB) GetKeys(arg0 context.Context, arg1 string) ([]string, error)

GetKeys mocks base method.

func (*DB) NewTransaction

func (m *DB) NewTransaction(arg0 context.Context, arg1 bool) (database.Transaction, context.Context, error)

NewTransaction mocks base method.

func (*DB) Ping

func (m *DB) Ping(arg0 context.Context) error

Ping mocks base method.

func (*DB) Set

func (m *DB) Set(arg0 context.Context, arg1 string, arg2 []byte) error

Set mocks base method.

type DBMockRecorder

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

DBMockRecorder is the mock recorder for DB.

func (*DBMockRecorder) Close

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

Close indicates an expected call of Close.

func (*DBMockRecorder) Get

func (mr *DBMockRecorder) Get(arg0, arg1 any) *gomock.Call

Get indicates an expected call of Get.

func (*DBMockRecorder) GetKeys

func (mr *DBMockRecorder) GetKeys(arg0, arg1 any) *gomock.Call

GetKeys indicates an expected call of GetKeys.

func (*DBMockRecorder) NewTransaction

func (mr *DBMockRecorder) NewTransaction(arg0, arg1 any) *gomock.Call

NewTransaction indicates an expected call of NewTransaction.

func (*DBMockRecorder) Ping

func (mr *DBMockRecorder) Ping(arg0 any) *gomock.Call

Ping indicates an expected call of Ping.

func (*DBMockRecorder) Set

func (mr *DBMockRecorder) Set(arg0, arg1, arg2 any) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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