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

Function TestDetectGNSSSerialFromEmptyFile

gnss/detect/detect_test.go:55–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestDetectGNSSSerialFromEmptyFile(t *testing.T) {
56 dir := t.TempDir()
57 sysfsFile := filepath.Join(dir, "ttyGNSS")
58 require.NoError(t, os.WriteFile(sysfsFile, []byte("\n"), 0o644))
59
60 _, err := detectGNSSSerialFrom(sysfsFile)
61 require.Error(t, err)
62 require.Contains(t, err.Error(), "empty tty device name")
63}
64
65// --- detectGNSSSerialFromGlob (PCI BDF resolver) ---
66

Callers

nothing calls this directly

Calls 2

detectGNSSSerialFromFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…