Documentation
¶
Index ¶
- func CompareTables(t *testing.T, configs []TableCompareConfig)
- func Consumed(t *testing.T, table optimus.Table)
- func GetRows(table optimus.Table) []optimus.Row
- func HasRows(t *testing.T, table optimus.Table, expected int) []optimus.Row
- func Stop(t *testing.T, table optimus.Table)
- type TableCompareConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareTables ¶
func CompareTables(t *testing.T, configs []TableCompareConfig)
CompareTables takes in a config of comparisons and runs them
func Consumed ¶
Consumed tests that a table has been completely consumed: that is to say, there are no more remaining Rows to read.
func GetRows ¶
func GetRows(table optimus.Table) []optimus.Row
GetRows returns a slice of all the rows in a table
Types ¶
type TableCompareConfig ¶
type TableCompareConfig struct { Name string Source func() optimus.Table Actual func(optimus.Table, interface{}) optimus.Table Expected func(optimus.Table, interface{}) optimus.Table Arg interface{} Error error }
TableCompareConfig contains a config for comparing two tables in a set of tests
Click to show internal directories.
Click to hide internal directories.