()
| 26 | } |
| 27 | |
| 28 | func (tw *testWriter) GetPackets() []wshrpc.CommandStreamData { |
| 29 | tw.mu.Lock() |
| 30 | defer tw.mu.Unlock() |
| 31 | result := make([]wshrpc.CommandStreamData, len(tw.packets)) |
| 32 | copy(result, tw.packets) |
| 33 | return result |
| 34 | } |
| 35 | |
| 36 | func (tw *testWriter) Clear() { |
| 37 | tw.mu.Lock() |
no outgoing calls
no test coverage detected