Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{ Env: nil, Interpreter: "/bin/bash", Timeout: 3 * time.Second, }
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection []*Test
func (Collection) Blacklist ¶
func (c Collection) Blacklist(blacklist []string) Collection
func (Collection) Whitelist ¶
func (c Collection) Whitelist(whitelist []string) Collection
type CommandResult ¶
type DefaultRunner ¶
type DefaultRunner struct{ Hooks RunHooks }
func (DefaultRunner) Command ¶
func (r DefaultRunner) Command(t *Test, c Command) (result CommandResult, err error)
func (DefaultRunner) Test ¶
func (r DefaultRunner) Test(t *Test) (result TestResult, err error)
type RunHooks ¶
type RunHooks interface { BeforeTest(t *Test) BeforeCommand(t *Test, cmd Command) BeforeCheck(t *Test, cmd Command, chk checks.Interface) AfterCheck(t *Test, cmd Command, chk checks.Interface, result checks.Result, err error) AfterCommand(t *Test, cmd Command, result CommandResult, err error) AfterTest(t *Test, result TestResult, err error) }
type Runner ¶
type Runner interface { Test(t *Test) (TestResult, error) Command(t *Test, cmd Command) (CommandResult, error) }
type TestResult ¶
type TestResult struct { Test *Test `yaml:"test"` Commands []CommandResult }
Click to show internal directories.
Click to hide internal directories.