Documentation ¶
Index ¶
- Variables
- type Test
- func (t *Test) Expect(actual interface{}) expect.Expectation
- func (t *Test) ExpectExitCode(act captor.Action) expect.Expectation
- func (t *Test) ExpectFile(f *os.File) stream.Expectations
- func (t *Test) ExpectPanic(act captor.Action) expect.Expectation
- func (t *Test) ExpectWritten(consumer stream.Consumer) stream.Expectations
Constants ¶
This section is empty.
Variables ¶
View Source
var Captor = captor.New()
Functions ¶
This section is empty.
Types ¶
type Test ¶
Test provides utilities for testing
func (*Test) Expect ¶
func (t *Test) Expect(actual interface{}) expect.Expectation
Expect returns a new value-based expectation
func (*Test) ExpectExitCode ¶
func (t *Test) ExpectExitCode(act captor.Action) expect.Expectation
ExpectExitCode returns an expectation about a captured exit code
func (*Test) ExpectFile ¶
func (t *Test) ExpectFile(f *os.File) stream.Expectations
ExpectFile returns a set of expectations about a file
func (*Test) ExpectPanic ¶
func (t *Test) ExpectPanic(act captor.Action) expect.Expectation
ExpectPanic returns an expectation about the cause of a panicking goroutine
func (*Test) ExpectWritten ¶
func (t *Test) ExpectWritten(consumer stream.Consumer) stream.Expectations
ExpectWritten returns a set of expectations about data written to a stream
Click to show internal directories.
Click to hide internal directories.