Documentation
¶
Overview ¶
Package tt supports table-driven tests with little boilerplate.
See the test case for this package for example usage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Case ¶
type Case struct {
// contains filtered or unexported fields
}
Case represents a test case. It is created by the C function, and offers setters that augment and return itself; those calls can be chained like C(...).Rets(...).
type FnToTest ¶
type FnToTest struct {
// contains filtered or unexported fields
}
FnToTest describes a function to test.
Click to show internal directories.
Click to hide internal directories.