compare

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package compare provides comparison functions for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareListsInOrder

func CompareListsInOrder(t *testing.T, meta, exMeta []block.SeriesMeta, index, exIndex [][]int)

CompareListsInOrder compares series meta / index pairs (order sensitive)

func CompareValues

func CompareValues(t *testing.T, meta, exMeta []block.SeriesMeta, vals, exVals [][]float64)

CompareValues compares series meta / value pairs (order insensitive)

func CompareValuesInOrder

func CompareValuesInOrder(t *testing.T, meta, exMeta []block.SeriesMeta, vals, exVals [][]float64)

CompareValuesInOrder compares series meta / value pairs (order sensitive)

func EqualsWithNans

func EqualsWithNans(t *testing.T, expected interface{}, actual interface{})

EqualsWithNans helps compare float slices which have NaNs in them

func EqualsWithNansWithDelta

func EqualsWithNansWithDelta(t *testing.T,
	expected interface{}, actual interface{}, delta float64)

EqualsWithNansWithDelta helps compare float slices which have NaNs in them allowing a delta for float comparisons.

Types

This section is empty.

Jump to

Keyboard shortcuts

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