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

Function TestMaxFreqPPB

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

Source from the content-addressed store, hash-verified

50}
51
52func TestMaxFreqPPB(t *testing.T) {
53 tx := &unix.Timex{}
54 wantState, err := unix.Adjtimex(tx)
55 require.NoError(t, err)
56
57 maxFreq, state, err := MaxFreqPPB(0)
58 require.NoError(t, err)
59 require.Equal(t, wantState, state)
60 require.Equal(t, 500000.0, maxFreq)
61}

Callers

nothing calls this directly

Calls 2

AdjtimexFunction · 0.92
MaxFreqPPBFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…