Documentation ¶
Overview ¶
Package progtest provides utilities for testing subprograms.
This package intentionally has no test file; it is excluded from test coverage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustWriteFile ¶
func MustWriteFile(name, content string)
MustWriteFile writes a file with the given name and content. It panics if the write fails.
Types ¶
type Fixture ¶
type Fixture struct {
// contains filtered or unexported fields
}
Fixture is a test fixture suitable for testing programs.
func Setup ¶
func Setup() *Fixture
Setup sets up a test fixture. The caller is responsible for calling the Cleanup method of the returned Fixture.
Click to show internal directories.
Click to hide internal directories.