Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandTester ¶
CommandTester tests a command
type CommandTesters ¶
type CommandTesters struct { Command commandInterface Testers []CommandTester Before func() After func() }
CommandTesters holds a command and its testers
type ExecTestCase ¶
ExecTestCase tests the result of calling the exec func on a command
func (ExecTestCase) Test ¶
func (etc ExecTestCase) Test(t *testing.T, command commandInterface)
Test executes the ExecTestCase and asserts the results
type OptionsTestCase ¶
OptionsTestCase tests the result of calling the options func on a command
func (OptionsTestCase) Test ¶
func (otc OptionsTestCase) Test(t *testing.T, command commandInterface)
Test executes the OptionsTestCase and asserts the results
Click to show internal directories.
Click to hide internal directories.