Documentation ¶
Index ¶
- type RestHelper
- func (h *RestHelper) Delete(t T, url string) scroll.Response
- func (h *RestHelper) Do(t T, req *http.Request) scroll.Response
- func (h *RestHelper) Get(t T, url string) scroll.Response
- func (h *RestHelper) Post(t T, url string, data url.Values) scroll.Response
- func (h *RestHelper) PostJSON(t T, url, data string) scroll.Response
- type T
- type TestApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestHelper ¶
type RestHelper struct{}
type T ¶
type T interface {
Fatal(args ...interface{})
}
T is an interface common to testing.T, testing.B, and *check.C.
type TestApp ¶
type TestApp struct { RestHelper // contains filtered or unexported fields }
TestApp wraps a regular app adding features that can be used in unit tests.
func NewTestApp ¶
func NewTestApp() *TestApp
NewTestApp creates a new app should be used in unit tests.
func (*TestApp) Close ¶
func (testApp *TestApp) Close()
Close shuts down the underlying test server.
Click to show internal directories.
Click to hide internal directories.