testutils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: ISC Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertQueries

func AssertQueries(t *testing.T, buf *zaptest.Buffer, lines []string)

func AssertQueriesRegexp

func AssertQueriesRegexp(t *testing.T, buf *zaptest.Buffer, lines []string)

func LoadFile

func LoadFile(t *testing.T, pathParts ...string) []byte

func SaveFile

func SaveFile(t *testing.T, content []byte, pathParts ...string)

func SetupLogger

func SetupLogger() (*zap.Logger, *zaptest.Buffer)

func SetupRepository

func SetupRepository(t *testing.T, appName, dbUser, dbPass, dbName string, logger *zap.Logger, fixture ...interface{}) (repository.PgRepository, func())

SetupRepository returns a new repository and a tear down function

func ShouldUpdateGoldenFiles

func ShouldUpdateGoldenFiles() bool

ShouldUpdateGoldenFiles return true if golden files should be updated

Types

This section is empty.

Jump to

Keyboard shortcuts

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