routertest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouterTest

type RouterTest struct {
	App         *app.App
	DataFS      filesystem.FS
	Database    *database.Database
	TemplatesFS filesystem.FS
	StaticFS    filesystem.FS
	Router      http.Handler
}

RouterTest allows for testing the server's Router

func SetupTest

func SetupTest(t *testing.T) *RouterTest

SetupTest returns a new RouterTest

Jump to

Keyboard shortcuts

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