(t *testing.T)
| 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 | |
| 154 | func TestAggregateDataPointsMaxEmpty(t *testing.T) { |
| 155 | s := newDaemonState(5) |
| 156 | got := s.aggregateDataPointsMax(5) |
| 157 | require.Equal(t, &DataPoint{}, got) |
| 158 | } |
| 159 | |
| 160 | func TestAggregateDataPointsMaxSingleEntry(t *testing.T) { |
| 161 | s := newDaemonState(5) |
| 162 | dp := &DataPoint{ |
| 163 | MasterOffsetNS: -500.0, |
| 164 | PathDelayNS: -200.0, |
| 165 | FreqAdjustmentPPB: 300.0, |
| 166 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…