MCPcopy Create free account
hub / github.com/facebook/time / TestPrepareExpressionWrongVari

Function TestPrepareExpressionWrongVari

fbclock/daemon/math_test.go:108–112  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

106}
107
108func TestPrepareExpressionWrongVari(t *testing.T) {
109 input := "abs(mean(offset, 5)) + 1.0 * stddev(missing, 4)"
110 _, err := prepareExpression(input)
111 require.Error(t, err)
112}
113
114func TestPrepareExpressionNotEnoughValues(t *testing.T) {
115 input := "mean(offset, 50)"

Callers

nothing calls this directly

Calls 2

prepareExpressionFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…