Documentation
¶
Index ¶
- Variables
- func HasCode(c int) resInitFn
- func HasItem(it vocab.Item) resInitFn
- func Request(initFn ...reqInitFn) testRequest
- func Response(initFn ...resInitFn) testResponse
- func WithBody(r io.Reader) reqInitFn
- func WithMethod(m string) reqInitFn
- func WithTests(testFns ...LineOutputTest) ioTestFn
- func WithURL(u string) reqInitFn
- type CommandTest
- type HTTPTest
- type LineOutputTest
- type RunnableTest
Constants ¶
This section is empty.
Variables ¶
View Source
var CR = []byte{'\n'}
View Source
var CRLF = []byte{'\r', '\n'}
Functions ¶
func WithMethod ¶
func WithMethod(m string) reqInitFn
func WithTests ¶
func WithTests(testFns ...LineOutputTest) ioTestFn
Types ¶
type CommandTest ¶
type CommandTest struct {
Name string
Host string
Cmd tc.Executable
IO ioTestFn
WantErr error
}
func (CommandTest) Label ¶
func (c CommandTest) Label() string
Click to show internal directories.
Click to hide internal directories.