MCPcopy
hub / github.com/wavetermdev/waveterm / newFakeTransport

Function newFakeTransport

pkg/streamclient/stream_test.go:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func newFakeTransport() *fakeTransport {
19 return &fakeTransport{
20 dataChan: make(chan wshrpc.CommandStreamData, 10),
21 ackChan: make(chan wshrpc.CommandStreamAckData, 10),
22 }
23}
24
25func (ft *fakeTransport) SendData(dataPk wshrpc.CommandStreamData) {
26 ft.dataChan <- dataPk

Callers 10

TestBasicReadWriteFunction · 0.85
TestEOFFunction · 0.85
TestFlowControlFunction · 0.85
TestErrorFunction · 0.85
TestCancelFunction · 0.85
TestMultipleWritesFunction · 0.85
TestOutOfOrderPacketsFunction · 0.85
TestOutOfOrderWithGapsFunction · 0.85
TestOutOfOrderWithEOFFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected