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

Function TestSetTimeNegative

clock/clock_linux_test.go:34–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func TestSetTimeNegative(t *testing.T) {
35 tx := &unix.Timex{}
36 setTime(tx, -1*time.Second, -500*time.Nanosecond)
37 require.Equal(t, int64(-1*time.Second), tx.Time.Sec)
38 require.Equal(t, int64(-500*time.Nanosecond), tx.Time.Usec)
39}
40
41func TestFrequencyPPB(t *testing.T) {
42 tx := &unix.Timex{}

Callers

nothing calls this directly

Calls 1

setTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…