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

Function TestIsSupportedVar

fbclock/daemon/helpers_test.go:123–133  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func TestIsSupportedVar(t *testing.T) {
124 require.True(t, isSupportedVar("offset"))
125 require.True(t, isSupportedVar("delay"))
126 require.True(t, isSupportedVar("freq"))
127 require.True(t, isSupportedVar("m"))
128 require.True(t, isSupportedVar("clockaccuracy"))
129 require.True(t, isSupportedVar("freqchange"))
130 require.True(t, isSupportedVar("freqchangeabs"))
131 require.False(t, isSupportedVar("missing"))
132 require.False(t, isSupportedVar(""))
133}
134
135func TestStddev(t *testing.T) {
136 // welford uses sample stddev (N-1 denominator)

Callers

nothing calls this directly

Calls 1

isSupportedVarFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…