testing

package
v0.0.0-...-e8f3219 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() (*sql.DB, error)

DB connects to the testing database

func InitializeDB

func InitializeDB(m *testing.M)

InitializeDB initializes spins up a clean postgres to run tests.

func NullLogger

func NullLogger() *log.Logger

NullLogger builds a logger that discards every log

func Repository

func Repository() files.Repository

Repository builds a repository that points to the local testdata folder of the test

Types

This section is empty.

Jump to

Keyboard shortcuts

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