(t *testing.T)
| 54 | require.Len(t, got, 2) |
| 55 | } |
| 56 | |
| 57 | func 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…