compare

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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