testutils

package
v0.0.0-...-f758046 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestConfig

func NewTestConfig(t *testing.T) *config.Config

func NewTestDB

func NewTestDB(t *testing.T) *database.Database

func NewTestServer

func NewTestServer(
	cfg *config.Config, db *database.Database,
	setupRouting func(*mux.Router, *config.Config, *database.Database),
) *httptest.Server

func TestWithTestServer

func TestWithTestServer(
	t *testing.T,
	testFunc func(t *testing.T, cfg *config.Config, db *database.Database, s *httptest.Server),
	setupRouting func(*mux.Router, *config.Config, *database.Database),
)

func TestWithTmpFiles

func TestWithTmpFiles(t *testing.T, testFunc func(t *testing.T), files map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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