commontest

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllRowsEqual

func AllRowsEqual(t *testing.T, expected *common.Rows, actual *common.Rows, colTypes []common.ColumnType)

func AppendRow

func AppendRow(t *testing.T, rows *common.Rows, colTypes []common.ColumnType, colVals ...interface{})

func RowsEqual

func RowsEqual(t *testing.T, expected common.Row, actual common.Row, colTypes []common.ColumnType)

func RowsToSlice

func RowsToSlice(rows *common.Rows) []*common.Row

func SortRows

func SortRows(rows []*common.Row) []*common.Row

func WaitUntil

func WaitUntil(t *testing.T, predicate Predicate)

func WaitUntilWithDur

func WaitUntilWithDur(t *testing.T, predicate Predicate, timeout time.Duration)

func WaitUntilWithError

func WaitUntilWithError(predicate Predicate, timeout time.Duration, sleepTime time.Duration) (bool, error)

Types

type Predicate

type Predicate func() (bool, error)

Jump to

Keyboard shortcuts

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