Documentation ¶
Index ¶
- func DetectPanic(t *testing.T, templateName string)
- func EqualToFile(str string, filePath string) bool
- func Handle(req *http.Request, h http.HandlerFunc, t *testing.T)
- func Header(req *http.Request, key, val string)
- func NewRequest(method, path string) (*http.Request, error)
- func NewRequestWithBody(method, path, body string) (*http.Request, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectPanic ¶
Detect if rendering template caused a panic. This function should be invoked with keyword `defer`
func EqualToFile ¶
Compares a string with the contents of the specified file.
func NewRequest ¶
Create a new http request with the supplied parameters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.