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

Function TestTakeDataPointPartial

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

Source from the content-addressed store, hash-verified

54 require.Len(t, got, 2)
55}
56
57func TestTakeDataPointOverflow(t *testing.T) {
58 s := newDaemonState(3)
59
60 dp1 := &DataPoint{MasterOffsetNS: 1.0}
61 dp2 := &DataPoint{MasterOffsetNS: 2.0}
62 dp3 := &DataPoint{MasterOffsetNS: 3.0}
63 dp4 := &DataPoint{MasterOffsetNS: 4.0}
64
65 s.pushDataPoint(dp1)
66 s.pushDataPoint(dp2)
67 s.pushDataPoint(dp3)
68 s.pushDataPoint(dp4)
69

Callers

nothing calls this directly

Calls 4

newDaemonStateFunction · 0.85
pushDataPointMethod · 0.80
takeDataPointMethod · 0.80
LenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…