Documentation
¶
Index ¶
- func Check(t *testing.T, tc TestCaseChecker, resp *http.Response)
- func Run(t *testing.T, uri string, tc TestCaseRun)
- type Case
- func (tc *Case) Body(b string) TestCase
- func (tc *Case) Code(v int) TestCase
- func (tc *Case) Contains(c string) TestCase
- func (tc *Case) Delete() TestCase
- func (tc *Case) Get() TestCase
- func (tc *Case) GetBody() string
- func (tc *Case) GetCode() int
- func (tc *Case) GetContains() string
- func (tc *Case) GetHeaders() [][2]string
- func (tc *Case) GetPath() string
- func (tc *Case) GetPayload() []byte
- func (tc *Case) GetVerb() string
- func (tc *Case) GetWhat() string
- func (tc *Case) HeaderAdd(h [2]string) TestCase
- func (tc *Case) Headers(h [][2]string) TestCase
- func (tc *Case) Path(p string) TestCase
- func (tc *Case) PathAdd(p string) TestCase
- func (tc *Case) Payload(b []byte) TestCase
- func (tc *Case) PayloadStr(b string) TestCase
- func (tc *Case) Post() TestCase
- func (tc *Case) What(w string) TestCase
- type TestCase
- type TestCaseChecker
- type TestCaseRun
- type TestCaseRunner
- type TestCaseSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Case ¶
type Case struct {
// contains filtered or unexported fields
}
func (*Case) GetContains ¶
func (*Case) GetHeaders ¶ added in v1.3.1
func (*Case) GetPayload ¶
func (*Case) PayloadStr ¶ added in v1.3.1
type TestCase ¶
type TestCase interface { TestCaseChecker TestCaseRunner TestCaseSetter }
type TestCaseChecker ¶
type TestCaseRun ¶ added in v1.3.1
type TestCaseRun interface { TestCaseChecker TestCaseRunner }
type TestCaseRunner ¶
type TestCaseSetter ¶
type TestCaseSetter interface { Body(string) TestCase Code(int) TestCase Contains(string) TestCase Delete() TestCase Get() TestCase Headers([][2]string) TestCase HeaderAdd([2]string) TestCase Path(string) TestCase PathAdd(string) TestCase Payload([]byte) TestCase PayloadStr(string) TestCase Post() TestCase What(w string) TestCase }
Click to show internal directories.
Click to hide internal directories.