Skip to content

Add Unit Tests for Packet Filtering #4

@arya2004

Description

@arya2004

There are currently no unit tests for the packet filtering logic in model/packet.go. Adding tests will improve reliability and make future changes safer.

Task:

  • Create internal/model/packet_test.go
  • Add tests for the ApplyFilters function (see sample test in the issue body above)
  • Test various filter combinations: protocol, source IP, destination IP, ports, and free text.

Why:
Automated tests help catch bugs early and encourage safe refactoring.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions