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

Function TestTakeLinearizabilityTestResultOverflow

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

Source from the content-addressed store, hash-verified

146 s.pushLinearizabilityTestResult(r3)
147
148 got := s.takeLinearizabilityTestResult(2)
149 require.Len(t, got, 2)
150 require.Contains(t, got, linearizability.TestResult(r3))
151 require.Contains(t, got, linearizability.TestResult(r2))
152}
153
154func TestAggregateDataPointsMaxEmpty(t *testing.T) {
155 s := newDaemonState(5)
156 got := s.aggregateDataPointsMax(5)
157 require.Equal(t, &DataPoint{}, got)
158}
159
160func TestAggregateDataPointsMaxSingleEntry(t *testing.T) {
161 s := newDaemonState(5)
162 dp := &DataPoint{
163 MasterOffsetNS: -500.0,
164 PathDelayNS: -200.0,
165 FreqAdjustmentPPB: 300.0,
166 }

Callers

nothing calls this directly

Calls 6

TestResultInterface · 0.92
newDaemonStateFunction · 0.85
UnixMethod · 0.80
LenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…