Documentation
¶
Index ¶
- type App
- func (a *App) Close() (err error)
- func (a *App) Delete(path string, body io.Reader) (*Response, error)
- func (a *App) DeleteJSON(path string, body io.Reader) (*Response, error)
- func (a *App) Get(path string) (*Response, error)
- func (a *App) GetJSON(path string) (*Response, error)
- func (a *App) Hot(path string) (*hot.Stream, error)
- func (a *App) Patch(path string, body io.Reader) (*Response, error)
- func (a *App) PatchJSON(path string, body io.Reader) (*Response, error)
- func (a *App) Post(path string, body io.Reader) (*Response, error)
- func (a *App) PostJSON(path string, body io.Reader) (*Response, error)
- func (a *App) Request(req *http.Request) (*Response, error)
- func (a *App) Wait() error
- type Response
- type TestCLI
- func (c *TestCLI) Env(key, value string)
- func (c *TestCLI) Run(ctx context.Context, args ...string) (stdout, stderr *bytes.Buffer, err error)
- func (c *TestCLI) Start(ctx context.Context, args ...string) (app *App, stdout *bytes.Buffer, stderr *bytes.Buffer, err error)
- func (c *TestCLI) Stdin(stdin io.Reader)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
type TestCLI ¶
type TestCLI struct {
// contains filtered or unexported fields
}
func (*TestCLI) Run ¶
func (c *TestCLI) Run(ctx context.Context, args ...string) (stdout, stderr *bytes.Buffer, err error)
Run the CLI with the provided args
Click to show internal directories.
Click to hide internal directories.