Documentation ¶
Index ¶
- func HTTPTestUtil(serverF TestFunc, testFunc ExecFunc)
- type ExecFunc
- type GovalinHTTP
- func (govalinHttp *GovalinHTTP) Get(path string, params ...interface{}) string
- func (govalinHttp *GovalinHTTP) GetResponse(path string, params ...interface{}) *httpclient.Response
- func (govalinHttp *GovalinHTTP) Post(path string, postData any) string
- func (govalinHttp *GovalinHTTP) PostResponse(path string, postData interface{}) *httpclient.Response
- func (govalinHttp *GovalinHTTP) Raw() *httpclient.HttpClient
- type TestFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPTestUtil ¶
Types ¶
type ExecFunc ¶
type ExecFunc func(http GovalinHTTP)
type GovalinHTTP ¶
type GovalinHTTP struct { Host string // contains filtered or unexported fields }
GovalinHTTP is a simple wrapper with utility methods to simplify testing.
func (*GovalinHTTP) Get ¶
func (govalinHttp *GovalinHTTP) Get(path string, params ...interface{}) string
func (*GovalinHTTP) GetResponse ¶
func (govalinHttp *GovalinHTTP) GetResponse(path string, params ...interface{}) *httpclient.Response
func (*GovalinHTTP) PostResponse ¶
func (govalinHttp *GovalinHTTP) PostResponse(path string, postData interface{}) *httpclient.Response
func (*GovalinHTTP) Raw ¶
func (govalinHttp *GovalinHTTP) Raw() *httpclient.HttpClient
Click to show internal directories.
Click to hide internal directories.