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

Function newTestMac

sa53/protocol/protocol_test.go:118–120  ·  view source on GitHub ↗

newTestMac wraps a SerialReadWriter for tests without opening a real port.

(p SerialReadWriter)

Source from the content-addressed store, hash-verified

116
117// newTestMac wraps a SerialReadWriter for tests without opening a real port.
118func newTestMac(p SerialReadWriter) *Mac {
119 return &Mac{port: p}
120}
121
122func TestReadResponse(t *testing.T) {
123 tests := []struct {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…