Skip to content

feat: add IsInSubnet expectations on IPAddress - #197

Merged
vbreuss merged 1 commit into
mainfrom
feat/ipaddress-is-in-subnet
Oct 16, 2026
Merged

vbreuss merged 1 commit into
mainfrom
feat/ipaddress-is-in-subnet

Conversation

@vbreuss

@vbreuss vbreuss commented Oct 16, 2026

Copy link
Copy Markdown
Member

Checking that an address lies in a CIDR range is a common need when verifying networking code, and System.Net.IPNetwork is not available on netstandard2.0, so the subnet is parsed strictly and compared by prefix bits, with IPv4-mapped addresses matched across families.

Checking that an address lies in a CIDR range is a common need when verifying networking code, and System.Net.IPNetwork is not available on netstandard2.0, so the subnet is parsed strictly and compared by prefix bits, with IPv4-mapped addresses matched across families.
Copilot AI balanced review requested due to automatic review settings October 16, 2026 21:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vbreuss
vbreuss enabled auto-merge (squash) October 16, 2026 21:33
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@github-actions

Copy link
Copy Markdown

Test Results

   19 files  ±  0     19 suites  ±0   17s ⏱️ +3s
1 112 tests + 88  1 111 ✅ + 88  1 💤 ±0  0 ❌ ±0 
6 640 runs  +528  6 639 ✅ +528  1 💤 ±0  0 ❌ ±0 

Results for commit f6d0558. ± Comparison against base commit 0e650f0.

@vbreuss
vbreuss merged commit c4d4d4d into main Oct 16, 2026
15 of 16 checks passed
@vbreuss
vbreuss deleted the feat/ipaddress-is-in-subnet branch October 16, 2026 21:37
@github-actions

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.5 LTS (Noble Numbat)
AMD EPYC 7763 2.62GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.303
[Host] : .NET 8.0.32 (8.0.32, 8.0.3226.50405), X64 RyuJIT x86-64-v3
DefaultJob : .NET 8.0.32 (8.0.32, 8.0.3226.50405), X64 RyuJIT x86-64-v3

Method Mean Error StdDev Gen0 Allocated
Content_aweXpect 494.5 ns 9.52 ns 9.35 ns 0.0563 944 B
SuccessStatusCode_aweXpect 251.1 ns 4.82 ns 4.50 ns 0.0467 784 B

@github-actions

Copy link
Copy Markdown

👽 Mutation Results

Mutation testing badge

aweXpect.Web

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Runtime Errors Total Detected Total Undetected Total Mutants
ThatIPAddress.IsInSubnet.cs 94.12% 80 5 0 0 18 6 0 80 5 109

The final mutation score is 94.12%

Coverage Thresholds: high:80 low:60 break:0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants