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

Function TestAggregateDataPointsMaxEmpty

fbclock/daemon/state_test.go:165–169  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

163 MasterOffsetNS: -500.0,
164 PathDelayNS: -200.0,
165 FreqAdjustmentPPB: 300.0,
166 }
167 s.pushDataPoint(dp)
168 got := s.aggregateDataPointsMax(5)
169 require.Equal(t, 500.0, got.MasterOffsetNS)
170 require.Equal(t, 200.0, got.PathDelayNS)
171 require.Equal(t, 300.0, got.FreqAdjustmentPPB)
172}

Callers

nothing calls this directly

Calls 2

newDaemonStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…