checkers

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InRange Checker = &inRangeChecker{
	&CheckerInfo{Name: "InRange", Params: []string{"obtained", "expected greater than", "expected less than"}},
}
View Source
var SeriesEquals Checker = &SeriesEqualsChecker{
	&CheckerInfo{Name: "SeriesEquals", Params: []string{"obtained", "expected"}},
}

Functions

func CheckEquality added in v0.5.0

func CheckEquality(s1, s2 []*protocol.Series) bool

func CheckSeriesEquality added in v0.5.0

func CheckSeriesEquality(s1, s2 *protocol.Series) bool

return true if the two series are equal, ignoring the order of points with the same timestamp. Two points can have the same sequence number if the user issue a query with group by time(1h) and some_column.

Types

type SeriesEqualsChecker added in v0.4.1

type SeriesEqualsChecker struct {
	*CheckerInfo
}

func (*SeriesEqualsChecker) Check added in v0.4.1

func (checker *SeriesEqualsChecker) Check(params []interface{}, names []string) (result bool, error string)

type SimplePoint added in v0.5.0

type SimplePoint [10]interface{}

Jump to

Keyboard shortcuts

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