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

Function FuzzPrepareExpression

fbclock/daemon/math_test.go:143–151  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

141}
142
143func FuzzPrepareExpression(f *testing.F) {
144 f.Add("mean(clockaccuracy, 5) + abs(mean(offset, 5)) + 1.0 * stddev(offset, 4) + 1.0 * stddev(delay, 4) + 1.0 * stddev(freq, 5)")
145 f.Add("abs(mean(offset, 5)) + 1.0 * stddev(missing, 4)")
146 f.Add("mean(offset, 50)")
147
148 f.Fuzz(func(t *testing.T, input string) {
149 _, _ = prepareExpression(input)
150 })
151}
152
153// TestGradualWindowByteIdentityAtFullRing locks the invariant that the new k(n) W expression reduces
154// bit-for-bit to the legacy "mean(m, N) + 4.0 * stddev(m, N)" once the ring is full (n == N).

Callers

nothing calls this directly

Calls 1

prepareExpressionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…