Skip to content

Commit

Permalink
Add test auto reference in config.zig
Browse files Browse the repository at this point in the history
Not useful right now, but might be later

Signed-off-by: emneo <emneo@kreog.com>
  • Loading branch information
emneo-dev committed Sep 9, 2024
1 parent 3b952a8 commit 99a6592
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config.zig
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ test "ipv4 loopback default port" {
try std.testing.expectEqual(parsed.in.sa.addr, 0x100007f);
}

test {
std.testing.refAllDecls(@This());
}

test "ipv4 loopback random port" {
const parsed = try parse_full_ip("127.0.0.1:0");
try std.testing.expectEqual(parsed.getPort(), 0);
Expand Down

0 comments on commit 99a6592

Please sign in to comment.