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

Function TestFrequencyPPB

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

Source from the content-addressed store, hash-verified

39}
40
41func TestFrequencyPPB(t *testing.T) {
42 tx := &unix.Timex{}
43 wantState, err := unix.Adjtimex(tx)
44 require.NoError(t, err)
45
46 freqPPB, state, err := FrequencyPPB(0)
47 require.NoError(t, err)
48 require.Equal(t, wantState, state)
49 require.Equal(t, float64(tx.Freq)/PPBToTimexPPM, freqPPB)
50}
51
52func TestMaxFreqPPB(t *testing.T) {
53 tx := &unix.Timex{}

Callers

nothing calls this directly

Calls 2

AdjtimexFunction · 0.92
FrequencyPPBFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…