dbmock

package
v0.0.0-...-9a5b211 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyArg

type AnyArg struct{}

func (AnyArg) Match

func (a AnyArg) Match(v driver.Value) bool

Match satisfies sqlmock.Argument interface

type MockDB

type MockDB struct {
	postgres.Client

	Mock sqlmock.Sqlmock
	// contains filtered or unexported fields
}

func NewMockDB

func NewMockDB() *MockDB

func (*MockDB) DB

func (m *MockDB) DB() *sql.DB

func (*MockDB) MustMeetExpectations

func (m *MockDB) MustMeetExpectations()

func (*MockDB) Register

func (m *MockDB) Register()

Jump to

Keyboard shortcuts

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