Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

coverage: kill mutants for ThatConstructors HaveParameter/Exactly/Count - #262

Merged
vbreuss merged 1 commit into
mainfrom
test/mutation-constructors-have-parameter
May 31, 2026
Merged

vbreuss merged 1 commit into
mainfrom
test/mutation-constructors-have-parameter

Conversation

@vbreuss

@vbreuss vbreuss commented May 31, 2026

Copy link
Copy Markdown
Member

Add assertion-path tests covering surviving and uncovered mutants in ThatConstructors.HaveParameter, HaveParameterExactly and HaveParameterCount:

  • null constructor handling (sync + async)
  • name predicate (AddPredicate) for type+name overloads where the type matches but the name differs
  • exact-type vs subtype behaviour and 'of exact type' message for the name and async overloads (forceDirect / exactType booleans)
  • negated index and modifier expectation text (AtIndex / HaveInParameter)
  • ParameterCountDescription 'one parameter' and the async count equality
  • exact NotMatching/Matching constructor formatting in HaveParameterCount

Add assertion-path tests covering surviving and uncovered mutants in
ThatConstructors.HaveParameter, HaveParameterExactly and HaveParameterCount:

- null constructor handling (sync + async)
- name predicate (AddPredicate) for type+name overloads where the type
  matches but the name differs
- exact-type vs subtype behaviour and 'of exact type' message for the
  name and async overloads (forceDirect / exactType booleans)
- negated index and modifier expectation text (AtIndex / HaveInParameter)
- ParameterCountDescription 'one parameter' and the async count equality
- exact NotMatching/Matching constructor formatting in HaveParameterCount
@vbreuss vbreuss self-assigned this May 31, 2026
@vbreuss vbreuss added the coverage Additional tests for edge cases or improvement of test coverage label May 31, 2026
@sonarqubecloud

Copy link
Copy Markdown

@vbreuss
vbreuss enabled auto-merge (squash) May 31, 2026 13:28
@github-actions

Copy link
Copy Markdown

Test Results

    13 files  ±  0      13 suites  ±0   5m 36s ⏱️ +33s
 4 211 tests + 23   4 208 ✅ + 23   3 💤 ±0  0 ❌ ±0 
25 246 runs  +138  25 233 ✅ +138  13 💤 ±0  0 ❌ ±0 

Results for commit a65b13e. ± Comparison against base commit 0091a86.

@vbreuss
vbreuss merged commit c360b33 into main May 31, 2026
11 checks passed
@vbreuss
vbreuss deleted the test/mutation-constructors-have-parameter branch May 31, 2026 13:32
@github-actions

Copy link
Copy Markdown

👽 Mutation Results

Mutation testing badge

aweXpect.Reflection

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Total Detected Total Undetected Total Mutants

The final mutation score is NaN%

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

@github-actions

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.300
[Host] : .NET 10.0.8 (10.0.8, 10.0.826.23019), X64 RyuJIT x86-64-v3
DefaultJob : .NET 10.0.8 (10.0.8, 10.0.826.23019), X64 RyuJIT x86-64-v3

Method Mean Error StdDev Gen0 Allocated
TypeIsNotStatic_aweXpect 228.5 ns 3.90 ns 3.64 ns 0.0386 648 B

@github-actions

Copy link
Copy Markdown

This is addressed in release v1.5.0.

@github-actions github-actions Bot added the state: released The issue is released label May 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

coverage Additional tests for edge cases or improvement of test coverage state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant