MCPcopy Create free account
hub / github.com/cortexproject/cortex / NewSamplesComparator

Function NewSamplesComparator

tools/querytee/response_comparator.go:26–35  ·  view source on GitHub ↗
(tolerance float64)

Source from the content-addressed store, hash-verified

24}
25
26func NewSamplesComparator(tolerance float64) *SamplesComparator {
27 return &SamplesComparator{
28 tolerance: tolerance,
29 sampleTypesComparator: map[string]SamplesComparatorFunc{
30 "matrix": compareMatrix,
31 "vector": compareVector,
32 "scalar": compareScalar,
33 },
34 }
35}
36
37type SamplesComparator struct {
38 tolerance float64

Callers 2

cortexReadRoutesFunction · 0.92

Calls

no outgoing calls

Tested by 1