Versions in this module Expand all Collapse all v0 v0.0.1 May 19, 2019 Changes in this version + type AssertCase interface + Assert func(input string) bool + Describe func() string + func NewContainCase(substr string) AssertCase + func NewEqualCase(want string) AssertCase + func NewNotContainCase(substr string) AssertCase + func NewNotRegexCase(pattern string) AssertCase + func NewRegexCase(pattern string) AssertCase + type Assertion struct + func (a *Assertion) Assert() (bool, *Result) + type AssertionBuilder struct + func (a *AssertionBuilder) AppendExitStatusCases(cases []AssertCase) + func (a *AssertionBuilder) AppendStderrCases(cases []AssertCase) + func (a *AssertionBuilder) AppendStdoutCases(cases []AssertCase) + func (a *AssertionBuilder) BuildWithCommand(args []string) (*Assertion, error) + func (a *AssertionBuilder) BuildWithStdin(stdin string) (*Assertion, error) + type CLI struct + ErrStream io.Writer + InStream *os.File + OutStream io.Writer + func (c *CLI) Run(args []string) int + type ContainCase struct + func (c *ContainCase) Assert(input string) bool + func (c *ContainCase) Describe() string + type EqualCase struct + func (c *EqualCase) Assert(input string) bool + func (c *EqualCase) Describe() string + type NotContainCase struct + func (c *NotContainCase) Assert(input string) bool + func (c *NotContainCase) Describe() string + type NotRegexCase struct + func (c *NotRegexCase) Assert(input string) bool + func (c *NotRegexCase) Describe() string + type RegexCase struct + func (c *RegexCase) Assert(input string) bool + func (c *RegexCase) Describe() string + type Result struct + func (r *Result) Show() (string, error) + func (r *Result) ShowDetails() (string, error) + func (r *Result) Stdout() string