analyzer: make http3/quic handling more reliable
Some checks failed
Quality check / Static analysis (push) Has been cancelled
Quality check / Tests (push) Has been cancelled

This commit is contained in:
2026-02-11 15:32:29 +05:30
parent 20294716e3
commit fdfe61457c
4 changed files with 34 additions and 0 deletions

View File

@@ -56,3 +56,13 @@ func TestQuicStreamParsing_ClientHello(t *testing.T) {
t.Errorf("%d B parsed = %v, want %v", len(clientHello), got, want)
}
}
func TestQuicStreamContiguousPayloadFromZero(t *testing.T) {
s := &quicStream{}
s.mergeFrame(3, []byte("de"))
s.mergeFrame(0, []byte("abc"))
got := s.contiguousPayloadFromZero()
if string(got) != "abcde" {
t.Fatalf("contiguousPayloadFromZero() = %q, want %q", string(got), "abcde")
}
}