apptest

package
v0.0.0-...-f05d2e9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TestValidUser is a valid authentication string for the TestSecret.
	TestValidUser = "DUtRr7IlHC-fd2wH8tfX_iLM8p8-3yeF4MTbc89B1lt41mk17sOlb6sg3JF_z6Sv"
	// TestInvalidUser is an invalid authentication string for the TestSecret
	// that is the same length as a valid string so it parses the same way.
	TestInvalidUser = "ABCDr7IlHC-fd2wH8tfX_iLM8p8-3yeF4MTbc89B1lt41mk17sOlb6sg3JF_z6Sv"
)

Variables

View Source
var TestSecret = []byte("shhh")

TestSecret is an arbitrary value for consistent testing of authentication.

Functions

func AssertStatus

func AssertStatus(rr *httptest.ResponseRecorder, want int) error

AssertStatus returns a helpful error if rr.Code != want

Types

This section is empty.

Jump to

Keyboard shortcuts

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