Versions in this module Expand all Collapse all v0 v0.5.0 Nov 10, 2021 Changes in this version + const TypeInvalid + const TypeValid + func EmbeddedTests() fs.FS + type CommandParser struct + func NewCommandParser(fsys fs.FS, cmd []string) CommandParser + func (c CommandParser) Decode(input string) (string, bool, error) + func (c CommandParser) Encode(input string) (output string, outputIsError bool, err error) + type Parser interface + Decode func(tomlInput string) (output string, outputIsError bool, err error) + Encode func(jsonInput string) (output string, outputIsError bool, err error) + type Runner struct + Encoder bool + Files fs.FS + Parser Parser + RunTests []string + SkipTests []string + func (r Runner) List() ([]string, error) + func (r Runner) Run() (Tests, error) + type Test struct + Encoder bool + Failure string + Input string + Key string + Output string + OutputFromStderr bool + Path string + Skipped bool + Want string + func (t *Test) ReadWantJSON(fsys fs.FS) (v interface{}, err error) + func (t *Test) ReadWantTOML(fsys fs.FS) (v interface{}, err error) + func (t Test) Failed() bool + func (t Test) ReadInput(fsys fs.FS) (path, data string, err error) + func (t Test) ReadWant(fsys fs.FS) (path, data string, err error) + func (t Test) Run(p Parser, fsys fs.FS) Test + func (t Test) Type() testType + type Tests struct + Failed int + Passed int + Skipped int + Tests []Test