testutils

package
v0.0.0-...-3c53947 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupMock

func SetupMock() (sqlDB *sql.DB, mock sqlmock.Sqlmock, err error)

SetupMock for testing.

Types

type MockTime

type MockTime struct {
	Time string
}

MockTime is used to mock a time value for sql-mock.

func (MockTime) Match

func (m MockTime) Match(v driver.Value) bool

Match satisfies sqlmock.Argument interface

Jump to

Keyboard shortcuts

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