Documentation ¶
Overview ¶
Package testhelpers contains some commonly used functions within testing packages
Encapsulated here for DRY so tests have a common way of doing things and not recreating all the time in each package
Index ¶
- func CopyFile(in string, out string)
- func Dates() (min time.Time, max time.Time, df string)
- func Dir() (dir string)
- func MockServer(f func(w http.ResponseWriter, r *http.Request), loglevel string) *httptest.Server
- func Mux() *http.ServeMux
- func T() *timer.Ts
- func WRGet(route string) (*httptest.ResponseRecorder, *http.Request)
- type Nested
- type Simple
- type Ts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockServer ¶
MockServer generates a mockserver with a handler attached and sets the log level
Types ¶
Click to show internal directories.
Click to hide internal directories.