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

Function TestTimeToTimespec

phc/pps_source_test.go:220–225  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

218 someTime := time.Unix(1075896000, 500000000)
219 result, err := unix.TimeToTimespec(someTime)
220 require.NoError(t, err, "TimeToTimespec")
221 require.Equal(t, result, unix.Timespec{Sec: 1075896000, Nsec: 500000000})
222}
223
224func TestPPSClockSyncServoLockedSuccess(t *testing.T) {
225 // Prepare
226 servoMock, mockDeviceController, finish := SetupMocks(t)
227 defer finish()
228

Callers

nothing calls this directly

Calls 2

TimeToTimespecFunction · 0.92
UnixMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…