testdb

package
v0.0.0-...-0640eb1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertSQLNullBool

func AssertSQLNullBool(t *testing.T, in sql.NullBool, boolean *bool)

AssertSQLNullBool missing godoc

func AssertSQLNullStringEqualTo

func AssertSQLNullStringEqualTo(t *testing.T, in sql.NullString, text *string)

AssertSQLNullStringEqualTo missing godoc

func RowCount

func RowCount(totalCount int) *sqlmock.Rows

RowCount missing godoc

func RowWhenObjectDoesNotExist

func RowWhenObjectDoesNotExist() *sqlmock.Rows

RowWhenObjectDoesNotExist missing godoc

func RowWhenObjectExist

func RowWhenObjectExist() *sqlmock.Rows

RowWhenObjectExist missing godoc

Types

type DBMock

type DBMock interface {
	sqlmock.Sqlmock
	AssertExpectations(t *testing.T)
}

DBMock missing godoc

func MockDatabase

func MockDatabase(t *testing.T) (*sqlx.DB, DBMock)

MockDatabase missing godoc

Jump to

Keyboard shortcuts

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