(t *testing.T)
| 159 | _, mockDeviceController, finish := SetupMocks(t) |
| 160 | defer finish() |
| 161 | ppsSource := PPSSource{PHCDevice: mockDeviceController} |
| 162 | |
| 163 | // Act |
| 164 | _, err := ppsSource.Timestamp() |
| 165 | |
| 166 | // Assert |
| 167 | require.Error(t, err) |
| 168 | } |
| 169 | |
| 170 | func TestGetPPSTimestampMoreThanHalfSecondShouldRemoveNanosseconds(t *testing.T) { |
| 171 | _, mockDeviceController, finish := SetupMocks(t) |
| 172 | defer finish() |
| 173 | ppsSource := PPSSource{PHCDevice: mockDeviceController, state: PPSSet, peroutPhase: 23312} |
| 174 | mockDeviceController.EXPECT().Time().Return(time.Unix(1075896000, 500023313), nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…