Added new clusters of unit tests, removed dead branches#119
Merged
Conversation
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #119
Scan targets checked: wolfip-bugs, wolfip-src
No new issues found in the changed files. ✅
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR increases branch coverage (notably for src/wolfip.c in multicast builds) by adding several new unit-test clusters and by removing a few defensive branches that are believed to be unreachable (“dead”).
Changes:
- Remove selected defensive checks in DNS parsing / callback code paths in
src/wolfip.c. - Add new unit-test suites targeting socket API arms, DHCP/DNS/IP/ARP receive-path edges, and various small edge-case helpers.
- Wire new tests into the unit test runner and build system, and add a
cov-multicastconvenience target.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/wolfip.c | Removes some DNS-related guard branches to reduce dead code and align with added coverage. |
| src/test/unit/unit_tests_socket_api_arms.c | Adds TCP/RAW/PACKET arm tests for socket API entry points. |
| src/test/unit/unit_tests_misc_edges.c | Adds targeted edge-case tests for small helpers and defensive branches. |
| src/test/unit/unit_tests_ip_arp_recv.c | Adds IP/ARP receive-path branch tests (forwarding, broadcasts, options, ARP validation). |
| src/test/unit/unit_tests_dns_edges.c | Adds DNS callback and name parsing edge-case tests. |
| src/test/unit/unit_tests_dhcp_edges.c | Adds DHCP parsing/timer edge-case tests. |
| src/test/unit/unit.c | Registers the large set of newly added tests in the test suite. |
| Makefile | Adds new unit-test sources and introduces cov-multicast target. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dgarske
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.