implement a stream.Reset() method

ref #380
This commit is contained in:
Marten Seemann
2017-01-06 11:27:13 +07:00
parent b741724069
commit a86f31d789
5 changed files with 123 additions and 45 deletions

View File

@@ -17,6 +17,7 @@ type mockStream struct {
}
func (mockStream) Close() error { return nil }
func (mockStream) Reset(error) { panic("not implemented") }
func (s *mockStream) CloseRemote(offset protocol.ByteCount) { s.remoteClosed = true }
func (s mockStream) StreamID() protocol.StreamID { return s.id }