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

Function TestDetectGNSSSerialFromMissingFile

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

Source from the content-addressed store, hash-verified

47}
48
49func TestDetectGNSSSerialFromMissingFile(t *testing.T) {
50 _, err := detectGNSSSerialFrom("/nonexistent/sysfs/ttyGNSS")
51 require.Error(t, err)
52 require.Contains(t, err.Error(), "cannot read")
53}
54
55func TestDetectGNSSSerialFromEmptyFile(t *testing.T) {
56 dir := t.TempDir()

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…