Add Unit Tests for Packet Filtering
Open
good first issue
hacktoberfest
hacktoberfest-accepted
- Dominant language
- Go
- Stars
- 2
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.