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

Function TestGetPropagatesDeviceError

sa53/protocol/protocol_test.go:178–184  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

176}
177
178func TestGetPropagatesDeviceError(t *testing.T) {
179 fp := &fakePort{chunks: [][]byte{[]byte("[!1]\r\n")}}
180 m := newTestMac(fp)
181 _, err := m.Get("DigitalTuning")
182 require.Error(t, err)
183 require.ErrorIs(t, err, ErrDeviceError)
184}
185
186// errPort always errors on Read.
187type errPort struct{ fakePort }

Callers

nothing calls this directly

Calls 3

newTestMacFunction · 0.85
GetMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…