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.
Click to show internal directories.
Click to hide internal directories.