newTestMac wraps a SerialReadWriter for tests without opening a real port.
(p SerialReadWriter)
| 116 | |
| 117 | // newTestMac wraps a SerialReadWriter for tests without opening a real port. |
| 118 | func newTestMac(p SerialReadWriter) *Mac { |
| 119 | return &Mac{port: p} |
| 120 | } |
| 121 | |
| 122 | func TestReadResponse(t *testing.T) { |
| 123 | tests := []struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…