mock

package
v0.11.0-nightly.20240702 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 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 DBCloseCall

type DBCloseCall struct {
	*gomock.Call
}

DBCloseCall wrap *gomock.Call

func (*DBCloseCall) Do

func (c *DBCloseCall) Do(f func() error) *DBCloseCall

Do rewrite *gomock.Call.Do

func (*DBCloseCall) DoAndReturn

func (c *DBCloseCall) DoAndReturn(f func() error) *DBCloseCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*DBCloseCall) Return

func (c *DBCloseCall) Return(arg0 error) *DBCloseCall

Return rewrite *gomock.Call.Return

type DBGetCall

type DBGetCall struct {
	*gomock.Call
}

DBGetCall wrap *gomock.Call

func (*DBGetCall) Do

func (c *DBGetCall) Do(f func(context.Context, string) ([]byte, error)) *DBGetCall

Do rewrite *gomock.Call.Do

func (*DBGetCall) DoAndReturn

func (c *DBGetCall) DoAndReturn(f func(context.Context, string) ([]byte, error)) *DBGetCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*DBGetCall) Return

func (c *DBGetCall) Return(arg0 []byte, arg1 error) *DBGetCall

Return rewrite *gomock.Call.Return

type DBGetKeysCall

type DBGetKeysCall struct {
	*gomock.Call
}

DBGetKeysCall wrap *gomock.Call

func (*DBGetKeysCall) Do

Do rewrite *gomock.Call.Do

func (*DBGetKeysCall) DoAndReturn

func (c *DBGetKeysCall) DoAndReturn(f func(context.Context, string) ([]string, error)) *DBGetKeysCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*DBGetKeysCall) Return

func (c *DBGetKeysCall) Return(arg0 []string, arg1 error) *DBGetKeysCall

Return rewrite *gomock.Call.Return

type DBMockRecorder

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

DBMockRecorder is the mock recorder for DB.

func (*DBMockRecorder) Close

func (mr *DBMockRecorder) Close() *DBCloseCall

Close indicates an expected call of Close.

func (*DBMockRecorder) Get

func (mr *DBMockRecorder) Get(arg0, arg1 any) *DBGetCall

Get indicates an expected call of Get.

func (*DBMockRecorder) GetKeys

func (mr *DBMockRecorder) GetKeys(arg0, arg1 any) *DBGetKeysCall

GetKeys indicates an expected call of GetKeys.

func (*DBMockRecorder) NewTransaction

func (mr *DBMockRecorder) NewTransaction(arg0, arg1 any) *DBNewTransactionCall

NewTransaction indicates an expected call of NewTransaction.

func (*DBMockRecorder) Ping

func (mr *DBMockRecorder) Ping(arg0 any) *DBPingCall

Ping indicates an expected call of Ping.

func (*DBMockRecorder) Set

func (mr *DBMockRecorder) Set(arg0, arg1, arg2 any) *DBSetCall

Set indicates an expected call of Set.

type DBNewTransactionCall

type DBNewTransactionCall struct {
	*gomock.Call
}

DBNewTransactionCall wrap *gomock.Call

func (*DBNewTransactionCall) Do

Do rewrite *gomock.Call.Do

func (*DBNewTransactionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*DBNewTransactionCall) Return

Return rewrite *gomock.Call.Return

type DBPingCall

type DBPingCall struct {
	*gomock.Call
}

DBPingCall wrap *gomock.Call

func (*DBPingCall) Do

func (c *DBPingCall) Do(f func(context.Context) error) *DBPingCall

Do rewrite *gomock.Call.Do

func (*DBPingCall) DoAndReturn

func (c *DBPingCall) DoAndReturn(f func(context.Context) error) *DBPingCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*DBPingCall) Return

func (c *DBPingCall) Return(arg0 error) *DBPingCall

Return rewrite *gomock.Call.Return

type DBSetCall

type DBSetCall struct {
	*gomock.Call
}

DBSetCall wrap *gomock.Call

func (*DBSetCall) Do

func (c *DBSetCall) Do(f func(context.Context, string, []byte) error) *DBSetCall

Do rewrite *gomock.Call.Do

func (*DBSetCall) DoAndReturn

func (c *DBSetCall) DoAndReturn(f func(context.Context, string, []byte) error) *DBSetCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*DBSetCall) Return

func (c *DBSetCall) Return(arg0 error) *DBSetCall

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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