Skip to content

feat: add virtual and override filters and assertions for events#341

Merged
vbreuss merged 2 commits into
mainfrom
feature/event-virtual-override
Jun 6, 2026
Merged

feat: add virtual and override filters and assertions for events#341
vbreuss merged 2 commits into
mainfrom
feature/event-virtual-override

Conversation

@vbreuss

@vbreuss vbreuss commented Jun 6, 2026

Copy link
Copy Markdown
Member

Add WhichAreVirtual / WhichOverride filters and IsVirtual / Overrides assertions (plus collection and negated variants) for EventInfo, matching what already exists for methods and properties.


@vbreuss vbreuss self-assigned this Jun 6, 2026
@vbreuss vbreuss added the enhancement New feature or request label Jun 6, 2026
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

Test Results

    13 files  ±  0      13 suites  ±0   11m 21s ⏱️ + 1m 42s
 6 735 tests + 63   6 732 ✅ + 63   3 💤 ±0  0 ❌ ±0 
40 255 runs  +378  40 242 ✅ +378  13 💤 ±0  0 ❌ ±0 

Results for commit 27825f1. ± Comparison against base commit 4079331.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 3.23GHz, 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 212.5 ns 1.15 ns 0.96 ns 0.0386 648 B

@github-actions

github-actions Bot commented Jun 6, 2026

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
Filters/EventFilters.WhichAreVirtual.cs 100.00% 3 0 0 0 0 0 3 0 3
Filters/EventFilters.WhichOverride.cs 100.00% 3 0 0 0 0 0 3 0 3
Helpers/EventInfoHelpers.cs 100.00% 20 0 0 0 4 2 20 0 26
ThatEvent.IsVirtual.cs 100.00% 10 0 0 0 3 6 10 0 19
ThatEvent.Overrides.cs 100.00% 10 0 0 0 3 6 10 0 19
ThatEvents.AreVirtual.cs 100.00% 18 0 0 0 4 12 18 0 34
ThatEvents.Override.cs 100.00% 18 0 0 0 4 12 18 0 34

The final mutation score is 100.00%

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

@vbreuss vbreuss enabled auto-merge (squash) June 6, 2026 21:01
@sonarqubecloud

sonarqubecloud Bot commented Jun 6, 2026

Copy link
Copy Markdown

@vbreuss vbreuss merged commit 3c4777c into main Jun 6, 2026
12 checks passed
@vbreuss vbreuss deleted the feature/event-virtual-override branch June 6, 2026 21:04
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

This is addressed in release v2.0.0.

@github-actions github-actions Bot added the state: released The issue is released label Jun 7, 2026
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.

Virtual and Override filters/assertions for events

1 participant