Skip to content

test: add cross-flow isolation test for HTTP parse errors #26

@Zious11

Description

@Zious11

Context

Discovered during PR review of #17 (HTTP parse error counter). The test coverage reviewer noted that all HTTP analyzer tests use a single test_flow_key(). No test verifies that parse errors on one flow don't affect parsing of a different flow.

Proposed Test

Create two flow keys; send malformed data on flow A, then valid data on flow B; assert flow B parses correctly and total parse errors is 1 (only from flow A).

This tests pre-existing flow isolation behavior in HttpAnalyzer.flows HashMap, not specific to the parse error counter — hence deferred from #17.

Files

  • tests/http_analyzer_tests.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    protocol:httpHTTP protocol analysistestTest coverage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions