(t *testing.T)
| 176 | } |
| 177 | |
| 178 | func 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. |
| 187 | type errPort struct{ fakePort } |
nothing calls this directly
no test coverage detected
searching dependent graphs…