Documentation
¶
Overview ¶
Utilities for unit testing this project.
Index ¶
Constants ¶
View Source
const InitialCommitSubject = "Initial empty commit"
Variables ¶
View Source
var TestWorkingDir string
Functions ¶
func CommitFileChange ¶
Types ¶
type WriteRecorder ¶
type WriteRecorder struct {
// contains filtered or unexported fields
}
An io.Writer that outputs to a string and also to Stdout. Useful for testing so that log output can still be seen in the output of the test if the test failed, and the output of the program can be asserted against.
func NewWriteRecorder ¶
func NewWriteRecorder() *WriteRecorder
Creates a new WriteRecorder that writes to Stdout.
func (*WriteRecorder) String ¶
func (r *WriteRecorder) String() string
Click to show internal directories.
Click to hide internal directories.