mock_database

package
v0.0.0-...-cf4d00b Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_database is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConn

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

MockConn is a mock of Conn interface

func NewMockConn

func NewMockConn(ctrl *gomock.Controller) *MockConn

NewMockConn creates a new mock instance

func (*MockConn) Begin

func (m *MockConn) Begin() (database.TxConn, error)

Begin mocks base method

func (*MockConn) Close

func (m *MockConn) Close() error

Close mocks base method

func (*MockConn) EXPECT

func (m *MockConn) EXPECT() *MockConnMockRecorder

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

func (*MockConn) GetContext

func (m *MockConn) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

GetContext mocks base method

func (*MockConn) SelectContext

func (m *MockConn) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext mocks base method

func (*MockConn) Transaction

func (m *MockConn) Transaction(arg0 func(database.TxConn) error) error

Transaction mocks base method

type MockConnMockRecorder

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

MockConnMockRecorder is the mock recorder for MockConn

func (*MockConnMockRecorder) Begin

func (mr *MockConnMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin

func (*MockConnMockRecorder) Close

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

Close indicates an expected call of Close

func (*MockConnMockRecorder) GetContext

func (mr *MockConnMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

GetContext indicates an expected call of GetContext

func (*MockConnMockRecorder) SelectContext

func (mr *MockConnMockRecorder) SelectContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

SelectContext indicates an expected call of SelectContext

func (*MockConnMockRecorder) Transaction

func (mr *MockConnMockRecorder) Transaction(arg0 interface{}) *gomock.Call

Transaction indicates an expected call of Transaction

Jump to

Keyboard shortcuts

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