arya2004 / arya2004/fynewire

Add Unit Tests for Packet Filtering

Open
#4 1 comment 0 reactions 1 assignee Claimed by @kaustubhudavant-hash View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.