tests

package
v0.0.0-...-49d4ca0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectationsMet

func ExpectationsMet(t *testing.T, mock sqlmock.Sqlmock)

ExpectationsMet checks if all the expectations are fulfilled

func SetupMockDB

func SetupMockDB() sqlmock.Sqlmock

SetupMockDB setups the mock sql db

Types

type AnyTime

type AnyTime struct{}

AnyTime To match time for test sqlmock queries

func (AnyTime) Match

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

Match satisfies sqlmock.Argument interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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