Skip to content

feat: add HasScheme for Uri#92

Merged
vbreuss merged 2 commits into
mainfrom
topic/add-uri-schema-expectation
Sep 20, 2025
Merged

feat: add HasScheme for Uri#92
vbreuss merged 2 commits into
mainfrom
topic/add-uri-schema-expectation

Conversation

@vbreuss

@vbreuss vbreuss commented Sep 20, 2025

Copy link
Copy Markdown
Member

This PR adds the HasScheme method for Uri objects to support verifying URI schemes in the testing framework.

Key changes:

  • Implements HasScheme() extension method that returns a PropertyResult.String<Uri> for scheme verification
  • Adds comprehensive test coverage for both positive and negative assertion scenarios
  • Updates the aweXpect.Core package dependency from version 2.22.2 to 2.23.0

@vbreuss vbreuss self-assigned this Sep 20, 2025
Copilot AI review requested due to automatic review settings September 20, 2025 14:48
@vbreuss vbreuss added the enhancement New feature or request label Sep 20, 2025

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.

Pull Request Overview

This PR adds the HasScheme method for Uri objects to support verifying URI schemes in the testing framework.

  • Implements HasScheme() extension method that returns a PropertyResult.String<Uri> for scheme verification
  • Adds comprehensive test coverage for both positive and negative assertion scenarios
  • Updates the aweXpect.Core package dependency from version 2.22.2 to 2.23.0

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
Source/aweXpect.Web/ThatUri.HasScheme.cs Implements the HasScheme extension method for Uri verification
Tests/aweXpect.Web.Tests/ThatUri.HasScheme.Tests.cs Comprehensive test suite covering all HasScheme method scenarios
Directory.Packages.props Updates aweXpect.Core package version to support new functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@vbreuss vbreuss enabled auto-merge (squash) September 20, 2025 14:49
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

👽 Mutation Results

Mutation testing badge

aweXpect.Web

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Total Detected Total Undetected Total Mutants
ThatUri.HasScheme.cs 100.00% 1 0 0 0 0 0 1 0 1

The final mutation score is 100.00%

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

@github-actions

github-actions Bot commented Sep 20, 2025

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.14.0, Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.305
[Host] : .NET 8.0.20 (8.0.2025.41914), X64 RyuJIT AVX2
DefaultJob : .NET 8.0.20 (8.0.2025.41914), X64 RyuJIT AVX2

Method Mean Error StdDev Gen0 Allocated
Content_aweXpect 593.1 ns 5.64 ns 4.71 ns 0.0648 1096 B
SuccessStatusCode_aweXpect 331.5 ns 1.87 ns 1.75 ns 0.0515 864 B

@github-actions

Copy link
Copy Markdown

Test Results

   10 files  ± 0     10 suites  ±0   5s ⏱️ ±0s
  554 tests +10    553 ✅ +10  1 💤 ±0  0 ❌ ±0 
1 650 runs  +30  1 649 ✅ +30  1 💤 ±0  0 ❌ ±0 

Results for commit fa874a6. ± Comparison against base commit 6b5bb2e.

@vbreuss vbreuss merged commit 13e45e2 into main Sep 20, 2025
12 checks passed
@vbreuss vbreuss deleted the topic/add-uri-schema-expectation branch September 20, 2025 14:53
@github-actions

Copy link
Copy Markdown

This is addressed in release v1.6.0.

@github-actions github-actions Bot added the state: released The issue is released label Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants