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

Function TestSourceStateTypeToString

ntp/chrony/packet_test.go:958–968  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

956}
957
958func TestSourceStateTypeToString(t *testing.T) {
959 v := SourceStateUnreach
960 got := v.String()
961 want := "unreach"
962 require.Equal(t, want, got)
963
964 v = SourceStateType(10)
965 got = v.String()
966 want = "unknown (10)"
967 require.Equal(t, want, got)
968}
969
970func TestModeTypeToString(t *testing.T) {
971 v := SourceModeRef

Callers

nothing calls this directly

Calls 2

SourceStateTypeTypeAlias · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…