Documentation ¶
Overview ¶
Package webtest provides helpers for testing web applications.
Index ¶
- type W
- func (w *W) Get(path string) (*http.Response, error)
- func (w *W) GetBody(path string) (body string, resp *http.Response, err error)
- func (w *W) NewRequest(method, path string, body io.Reader) *http.Request
- func (w *W) Post(path, bodyType string, body io.Reader) (*http.Response, error)
- func (w *W) PostForm(path string, v url.Values) (*http.Response, error)
- func (w *W) WaitForNet()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type W ¶
W holds the configuration for a web test.
func (*W) NewRequest ¶
NewRequest constructs a http.Request for the web tests's host.
func (*W) WaitForNet ¶
func (w *W) WaitForNet()
WaitForNet waits for the host to come live. After a 30s timeout, it will call t.Fatal
Click to show internal directories.
Click to hide internal directories.