tests

package
v3.6.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareTables

func CompareTables(t *testing.T, configs []TableCompareConfig)

func Consumed

func Consumed(t *testing.T, table optimus.Table)

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

func HasRows

func HasRows(t *testing.T, table optimus.Table, expected int) []optimus.Row

HasRows tests that a table has the correct number of rows, and returns all the rows.

func Stop

func Stop(t *testing.T, table optimus.Table)

Stop tests that a Table correctly implements Stop. It assumes that it is invoked with a newly-created 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL