Documentation
¶
Overview ¶
Package tabby is a framework for writing table-driven tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GivenEvent ¶
type GivenEvent struct {
// contains filtered or unexported fields
}
GivenEvent is the intermediate object returned by Given(), which must be followed immediately by Expect()
func (*GivenEvent) Expect ¶
func (o *GivenEvent) Expect(outputs ...interface{}) *WrappedFunction
Expect sets the expected output values for the given values in the preceding Given() call
type WrappedFunction ¶
type WrappedFunction struct {
// contains filtered or unexported fields
}
WrappedFunction defines a test case for a given function
func (*WrappedFunction) Given ¶
func (w *WrappedFunction) Given(inputs ...interface{}) *GivenEvent
Given creates a scenario based on the inputs. This call should be immediately followed by an Expect() call.
func (*WrappedFunction) Run ¶
func (w *WrappedFunction) Run(t *testing.T)
Run performs all scenarios as subtests
Click to show internal directories.
Click to hide internal directories.