Documentation
¶
Index ¶
- func RunTestRuntimes(t *testing.T, tests ...TestSpec)
- func StringFlags(opts ...string) func(t *testing.T, workdir string) []string
- func WantPrompt(prompt string, inputoutput ...[2]string) func(t *testing.T, workdir string, in io.Writer, out io.Reader)
- func WantPromptWithWorkdir(prompt string, inputoutputFunc func(workdir string) [][2]string) func(t *testing.T, workdir string, in io.Writer, out io.Reader)
- func WantString(wantstr string) func(t *testing.T, workdir string, in io.Writer, out io.Reader)
- type Input
- type TestSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTestRuntimes ¶
func WantPrompt ¶
func WantPromptWithWorkdir ¶
Types ¶
type TestSpec ¶
type TestSpec struct {
Name string
Inputs []Input
Prepare func(t *testing.T, workdir string)
Finalize func(t *testing.T, workdir string)
ImageName string // default: test.wasm
Runtime string
RuntimeOpts func(t *testing.T, workdir string) []string
Args func(t *testing.T, workdir string) []string
Want func(t *testing.T, workdir string, in io.Writer, out io.Reader)
NoParallel bool
}
Click to show internal directories.
Click to hide internal directories.