test

package
v0.0.0-...-57178c3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: ISC Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(ds *Dds)

Configure does any general setup

func FloatEqual

func FloatEqual(a float64, b float64) bool

FloatEqual compares floats

func HTTPPrint

func HTTPPrint(w *httptest.ResponseRecorder) (*http.Response, string)

HTTPPrint fancy prints http results

func ShutdownDs

func ShutdownDs(ds *Dds)

ShutdownDs shuts down a test database

func StringSliceEqual

func StringSliceEqual(a, b []string) bool

StringSliceEqual compares string slices

Types

type Dds

type Dds struct {
	Db *gorm.DB
	// contains filtered or unexported fields
}

Dds represents dummy databases for tests

func SetupDs

func SetupDs() *Dds

SetupDs sets up the testdatabase

Jump to

Keyboard shortcuts

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