Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessTest ¶
func AccessTest(t *testing.T, g *guard.Guard, testCases []AccessTestCase)
AccessTest checks if the auth are correctly set
func InvalidParams ¶
func InvalidParams(t *testing.T, g *guard.Guard, testCases []InvalidParamsTestCase)
InvalidParams checks if the params are correctly failing
Types ¶
type AccessTestCase ¶
AccessTestCase represents the data needed to test params
type InvalidParamsTestCase ¶
type InvalidParamsTestCase struct { Description string MsgMatch string FieldName string Sources map[string]url.Values FileHolder formfile.FileHolder }
InvalidParamsTestCase represents the data needed to test params
Click to show internal directories.
Click to hide internal directories.