Skip to content

feat: recognise expectations that guarantee a not-null subject by attribute - #1050

Merged
vbreuss merged 2 commits into
mainfrom
feat/guarantees-not-null-expectations
Sep 12, 2026
Merged

vbreuss merged 2 commits into
mainfrom
feat/guarantees-not-null-expectations

Conversation

@vbreuss

@vbreuss vbreuss commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Mark the expectations in aweXpect that a null subject cannot satisfy with [GuaranteesNotNull] and let IsNotNullSuppressor read the attribute instead of a hardcoded list of three method names.

Matching by name could not distinguish overloads. The attribute can, which is what the three partial cases need: IsNotEmpty, DoesNotStartWith and DoesNotEndWith are marked on their collection overloads but not on their string? ones, where a null subject fulfils them.

The analyzer no longer requires the receiver to be IThat<TSubject>, because aweXpect.Core declares expectations such as Throws or IsExactly as instance members of other types. Both the attribute and the marked method must still come from a referenced aweXpect assembly, so a look-alike attribute in user code cannot trigger a suppression.

The source generator emits the attribute for the nullable expectations it derives from ConstraintResult.WithNotNullValue. Is{Not}NullOrEmpty on a Guid? builds on WithValue instead, where only the negated expectation fails for null; NegatedFailsOnNull expresses that.

Not marked, because a null subject satisfies them for at least one accepted argument:

  • ThatString.StartsWith / EndsWith, which are fulfilled by null!.
  • The DoesNotContain overloads taking a sequence, which are fulfilled by an empty one.

GuaranteesNotNullTests discovers every marked expectation in both assemblies by reflection and invokes it against a null subject. The expectations whose call shape it cannot construct faithfully are listed in ExcludedFromInvocation and checked to have a hand-written null-subject test instead, so neither list can grow silently.

@vbreuss vbreuss self-assigned this Sep 12, 2026
Copilot AI lite review requested due to automatic review settings September 12, 2026 17:36
@vbreuss vbreuss added the enhancement New feature or request label Sep 12, 2026

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.

…ribute

Mark the 646 expectations in `aweXpect` that a `null` subject cannot satisfy
with `[GuaranteesNotNull]` and let `IsNotNullSuppressor` read the attribute
instead of a hardcoded list of three method names.

Matching by name could not distinguish overloads. The attribute can, which is
what the three partial cases need: `IsNotEmpty`, `DoesNotStartWith` and
`DoesNotEndWith` are marked on their collection overloads but not on their
`string?` ones, where a `null` subject fulfils them.

The analyzer no longer requires the receiver to be `IThat<TSubject>`, because
`aweXpect.Core` declares expectations such as `Throws` or `IsExactly` as
instance members of other types. Both the attribute and the marked method must
still come from a referenced aweXpect assembly, so a look-alike attribute in
user code cannot trigger a suppression.

The source generator emits the attribute for the nullable expectations it
derives from `ConstraintResult.WithNotNullValue`. `Is{Not}NullOrEmpty` on a
`Guid?` builds on `WithValue` instead, where only the negated expectation fails
for `null`; `NegatedFailsOnNull` expresses that.

Not marked, because a `null` subject satisfies them for at least one accepted
argument:

- `ThatString.StartsWith` / `EndsWith`, which are fulfilled by `null!`.
- The `DoesNotContain` overloads taking a sequence, which are fulfilled by an
  empty one.

`GuaranteesNotNullTests` discovers every marked expectation in both assemblies
by reflection and invokes it against a `null` subject. The expectations whose
call shape it cannot construct faithfully are listed in `ExcludedFromInvocation`
and checked to have a hand-written null-subject test instead, so neither list
can grow silently.
@vbreuss
vbreuss force-pushed the feat/guarantees-not-null-expectations branch from d18c724 to 4bb9ec2 Compare September 12, 2026 17:36
@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

     23 files   -    27       23 suites   - 27   9m 20s ⏱️ - 1m 39s
 20 540 tests +  265   20 538 ✅ +  265  2 💤 ±0  0 ❌ ±0 
106 856 runs  +2 091  106 854 ✅ +2 091  2 💤 ±0  0 ❌ ±0 

Results for commit 7b72158. ± Comparison against base commit ae28ac8.

This pull request removes 3233 and adds 3498 tests. Note that renamed tests count towards both.
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message00997c52-8830-4137-ae11-50e0bf5e6767")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message692ff591-588b-4b76-a969-7e543bf099ea")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "messagebc01e15b-b878-4d9d-a319-d7710bb6f951")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "messagedf60878f-e826-49f9-b9d7-ac605fdde978")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "messagee1d86dc9-a486-4fb5-b3bf-0e204bd7eee4")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "messagee498d9d4-b065-423c-9a47-6dcef9004142")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message0765b29c-e338-4812-9ad3-5889af60b855")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message10c6ba77-1b76-4025-8aeb-089b351c21b1")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message31d939ba-0154-440a-aacf-4954ae7d019e")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message879e54e8-9a3b-4564-a135-4328c1f3f907")
…
aweXpect.Analyzers.Tests.IsNotNullSuppressorTests ‑ WhenExpectationHasLookAlikeAttribute_ShouldNotSuppressWarning
aweXpect.Analyzers.Tests.IsNotNullSuppressorTests ‑ WhenExpectationIsDeclaredInCore_ShouldSuppressWarning
aweXpect.Analyzers.Tests.IsNotNullSuppressorTests ‑ WhenExpectationRequiresNotEmptyCollection_ShouldSuppressWarning
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message04cd51fd-61eb-4b92-bc72-bfefb1dbb23c")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message8da565a1-4c84-4167-ac2f-e56ffcdbd996")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message937915e5-9a40-498f-9a4b-3a5b1d5844f7")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "message99102896-e7c0-4b27-908f-c8a2761f8910")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "messageb3ccf8c6-aafb-4943-9db7-2eb22a65bbe1")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ InnerException_ShouldBeSet(message: "messagec3fd3d05-3edc-41db-be1d-3b342d62cd53")
aweXpect.Core.Tests.Core.Exceptions.FailExceptionTests ‑ Message_ShouldBeSet(message: "message0c040406-92ce-4af6-b72d-d125937e2144")
…

♻️ This comment has been updated with latest results.

A review of the previous commit found that both self-policing claims of
`GuaranteesNotNullTests` were weaker than advertised.

`GetCoveringTests` stripped the declaring type before matching, so any nested
test class with a matching expectation name counted as coverage — `ThatString`'s
`Contains` tests "covered" `ThatEnumerable.Contains`, and 22 unrelated classes
including the dictionary ones "covered" `ThatEnumerable.AreAllUnique`. It now
matches on the declaring type as well. The check remains per expectation name
rather than per overload, which is the most a mechanical check can assert, and
the comment no longer claims otherwise.

An expectation whose subject cannot be null was dropped before the exclusion
check, so it was neither invoked, excluded nor reported. That is correct for a
genuinely non-nullable value type, but a generic subject that merely resolved to
one of this test's own helper structs would have vanished just as quietly.
`SkippedExpectations_ShouldHaveASubjectThatCannotBeNull` now rejects exactly
that. Verified by making an unconstrained subject resolve to `EnumerableStruct`.

`ExcludedExpectations_ShouldBeCovered` moves behind `NET8_0_OR_GREATER` as a
whole: both of its assertions describe this repository rather than runtime
behaviour, and the `IAsyncEnumerable` expectations and their tests are absent
from the older target frameworks.

Also from the review: the analyzer checks the assembly before decoding
attributes, since the receiver restriction that used to narrow the candidates is
gone; the four new null-subject tests assert their message like their
neighbours, so they cannot pass for the wrong reason; and a continuation
argument no longer defaults to a minute.
Copilot AI review requested due to automatic review settings September 12, 2026 18:20

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) September 12, 2026 18:22
@sonarqubecloud

Copy link
Copy Markdown

@vbreuss
vbreuss merged commit 2dfc2a9 into main Sep 12, 2026
14 checks passed
@vbreuss
vbreuss deleted the feat/guarantees-not-null-expectations branch September 12, 2026 18:28
github-actions Bot added a commit that referenced this pull request Sep 12, 2026
…ntee a not-null subject by attribute (#1050) by Valentin Breuß
github-actions Bot added a commit that referenced this pull request Sep 12, 2026
…ntee a not-null subject by attribute (#1050) by Valentin Breuß
@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Benchmark Results

Details

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

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Method Mean Error StdDev Gen0 Gen1 Allocated
Bool_aweXpect 282.8 ns 1.39 ns 1.30 ns 0.0415 - 696 B
Bool_FluentAssertions 261.9 ns 1.29 ns 1.14 ns 0.0567 - 952 B
Equivalency_aweXpect 316,378.9 ns 1,323.45 ns 1,173.20 ns 20.0195 0.4883 335444 B
Equivalency_FluentAssertions 2,781,115.1 ns 36,853.12 ns 34,472.43 ns 289.0625 46.8750 4841651 B
Int_GreaterThan_aweXpect 273.1 ns 9.31 ns 8.71 ns 0.0515 - 864 B
Int_GreaterThan_FluentAssertions 267.4 ns 6.81 ns 6.37 ns 0.0730 - 1224 B
ItemsCount_AtLeast_aweXpect 501.2 ns 17.83 ns 15.80 ns 0.0811 - 1360 B
ItemsCount_AtLeast_FluentAssertions 524.3 ns 12.86 ns 11.40 ns 0.1192 - 2008 B
String_aweXpect 494.0 ns 13.07 ns 11.59 ns 0.0668 - 1128 B
String_FluentAssertions 1,223.9 ns 37.62 ns 35.19 ns 0.2346 - 3944 B
StringArray_aweXpect 1,889.4 ns 17.35 ns 16.23 ns 0.1564 - 2624 B
StringArray_FluentAssertions 1,281.1 ns 4.32 ns 3.83 ns 0.2480 - 4152 B
StringArrayInAnyOrder_aweXpect 2,538.7 ns 15.18 ns 14.20 ns 0.1678 - 2816 B
StringArrayInAnyOrder_FluentAssertions 27,492.0 ns 321.13 ns 300.39 ns 1.9836 0.0610 33471 B

@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

👽 Mutation Results

Mutation testing badge

aweXpect

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Runtime Errors Total Detected Total Undetected Total Mutants
That/Booleans/ThatBool.Implies.cs 100.00% 16 0 0 0 5 6 0 16 0 27
That/Booleans/ThatBool.IsFalse.cs 100.00% 1 0 0 0 0 0 0 1 0 1
That/Booleans/ThatBool.IsTrue.cs 100.00% 1 0 0 0 0 0 0 1 0 1
That/Booleans/ThatNullableBool.Implies.cs 100.00% 18 0 0 0 5 6 0 18 0 29
That/Booleans/ThatNullableBool.IsFalse.cs 100.00% 2 0 0 0 0 0 0 2 0 2
That/Booleans/ThatNullableBool.IsTrue.cs 100.00% 2 0 0 0 0 0 0 2 0 2
That/Collections/ThatAsyncEnumerable.AreAllUnique.cs 85.71% 36 6 0 0 10 16 0 36 6 68
That/Collections/ThatAsyncEnumerable.Contains.cs 85.63% 146 15 3 10 46 40 0 149 25 260
That/Collections/ThatAsyncEnumerable.EndsWith.cs 84.13% 53 9 0 1 24 24 0 53 10 111
That/Collections/ThatAsyncEnumerable.HasCount.cs 100.00% 3 0 0 0 0 0 0 3 0 3
That/Collections/ThatAsyncEnumerable.HasItem.cs 79.79% 73 16 2 3 31 36 0 75 19 161
That/Collections/ThatAsyncEnumerable.HasItemThat.cs 67.92% 34 10 2 7 18 16 0 36 17 87
That/Collections/ThatAsyncEnumerable.HasSingle.cs 90.00% 34 3 2 1 17 11 0 36 4 68
That/Collections/ThatAsyncEnumerable.IsContainedIn.cs 100.00% 8 0 0 0 0 0 0 8 0 8
That/Collections/ThatAsyncEnumerable.IsEmpty.cs 82.61% 18 4 1 0 5 7 0 19 4 35
That/Collections/ThatAsyncEnumerable.IsInAscendingOrder.cs 100.00% 4 0 0 0 4 0 0 4 0 8
That/Collections/ThatAsyncEnumerable.IsInDescendingOrder.cs 100.00% 4 0 0 0 4 0 0 4 0 8
That/Collections/ThatAsyncEnumerable.StartsWith.cs 82.14% 46 9 0 1 22 23 0 46 10 101
That/Collections/ThatDictionary.AreAllUnique.cs 81.82% 36 8 0 0 10 16 0 36 8 70
That/Collections/ThatDictionary.ContainsKey.cs 90.91% 20 2 0 0 5 10 0 20 2 37
That/Collections/ThatDictionary.ContainsKeys.cs 89.66% 26 2 0 1 11 16 0 26 3 56
That/Collections/ThatDictionary.ContainsValue.cs 90.48% 19 2 0 0 4 6 0 19 2 31
That/Collections/ThatDictionary.ContainsValues.cs 93.10% 27 2 0 0 9 10 0 27 2 48
That/Collections/ThatEnumerable.AreAllUnique.cs 80.49% 66 12 0 4 20 34 0 66 16 136
That/Collections/ThatEnumerable.Contains.cs 80.89% 254 33 0 27 83 84 0 254 60 481
That/Collections/ThatEnumerable.EndsWith.cs 94.49% 120 7 0 0 24 46 0 120 7 197
That/Collections/ThatEnumerable.HasCount.cs 100.00% 12 0 0 0 0 0 0 12 0 12
That/Collections/ThatEnumerable.HasItem.cs 81.82% 148 27 5 7 64 80 0 153 34 331
That/Collections/ThatEnumerable.HasItemThat.cs 82.14% 69 12 0 3 24 30 0 69 15 138
That/Collections/ThatEnumerable.HasSingle.cs 91.25% 73 5 0 2 33 24 0 73 7 137
That/Collections/ThatEnumerable.IsContainedIn.cs 100.00% 14 0 0 0 0 0 0 14 0 14
That/Collections/ThatEnumerable.IsEmpty.cs 85.71% 30 5 0 0 6 18 0 30 5 59
That/Collections/ThatEnumerable.IsInAscendingOrder.cs 100.00% 12 0 0 0 12 0 0 12 0 24
That/Collections/ThatEnumerable.IsInDescendingOrder.cs 100.00% 12 0 0 0 12 0 0 12 0 24
That/Collections/ThatEnumerable.StartsWith.cs 95.58% 108 5 0 0 22 44 0 108 5 179
That/Collections/ThatReadOnlyDictionary.AreAllUnique.cs 81.82% 36 8 0 0 10 16 0 36 8 70
That/Collections/ThatReadOnlyDictionary.ContainsKey.cs 90.91% 20 2 0 0 5 10 0 20 2 37
That/Collections/ThatReadOnlyDictionary.ContainsKeys.cs 93.10% 27 2 0 0 10 15 0 27 2 54
That/Collections/ThatReadOnlyDictionary.ContainsValue.cs 90.48% 19 2 0 0 4 6 0 19 2 31
That/Collections/ThatReadOnlyDictionary.ContainsValues.cs 93.10% 27 2 0 0 9 10 0 27 2 48
That/DateOnlys/ThatDateOnly.IsAfter.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateOnlys/ThatDateOnly.IsBefore.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateOnlys/ThatDateOnly.IsBetween.cs 100.00% 35 0 0 0 6 8 0 35 0 49
That/DateOnlys/ThatDateOnly.IsOnOrAfter.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateOnlys/ThatDateOnly.IsOnOrBefore.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateOnlys/ThatNullableDateOnly.IsAfter.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateOnlys/ThatNullableDateOnly.IsBefore.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateOnlys/ThatNullableDateOnly.IsBetween.cs 88.64% 39 5 0 0 6 8 0 39 5 58
That/DateOnlys/ThatNullableDateOnly.IsOnOrAfter.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateOnlys/ThatNullableDateOnly.IsOnOrBefore.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateTimeOffsets/ThatDateTimeOffset.IsAfter.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateTimeOffsets/ThatDateTimeOffset.IsBefore.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateTimeOffsets/ThatDateTimeOffset.IsBetween.cs 100.00% 35 0 0 0 6 8 0 35 0 49
That/DateTimeOffsets/ThatDateTimeOffset.IsOnOrAfter.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateTimeOffsets/ThatDateTimeOffset.IsOnOrBefore.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateTimeOffsets/ThatNullableDateTimeOffset.IsAfter.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateTimeOffsets/ThatNullableDateTimeOffset.IsBefore.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateTimeOffsets/ThatNullableDateTimeOffset.IsBetween.cs 88.64% 39 5 0 0 6 8 0 39 5 58
That/DateTimeOffsets/ThatNullableDateTimeOffset.IsOnOrAfter.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateTimeOffsets/ThatNullableDateTimeOffset.IsOnOrBefore.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateTimes/ThatDateTime.IsAfter.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateTimes/ThatDateTime.IsBefore.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateTimes/ThatDateTime.IsBetween.cs 100.00% 35 0 0 0 6 8 0 35 0 49
That/DateTimes/ThatDateTime.IsOnOrAfter.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateTimes/ThatDateTime.IsOnOrBefore.cs 100.00% 22 0 0 0 5 6 0 22 0 33
That/DateTimes/ThatNullableDateTime.IsAfter.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateTimes/ThatNullableDateTime.IsBefore.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateTimes/ThatNullableDateTime.IsBetween.cs 88.64% 39 5 0 0 6 8 0 39 5 58
That/DateTimes/ThatNullableDateTime.IsOnOrAfter.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/DateTimes/ThatNullableDateTime.IsOnOrBefore.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/Delegates/ThatDelegate.ExecutesWithin.cs 91.89% 68 6 0 0 27 25 0 68 6 126
That/Enums/ThatEnum.HasValue.cs 100.00% 12 0 0 0 4 4 0 12 0 20
That/Enums/ThatEnum.IsDefined.cs 100.00% 7 0 0 0 2 4 0 7 0 13
That/Enums/ThatNullableEnum.HasValue.cs 100.00% 14 0 0 0 4 4 0 14 0 22
That/Enums/ThatNullableEnum.IsDefined.cs 100.00% 9 0 0 0 2 4 0 9 0 15
That/Exceptions/ThatException.HasHResult.cs 83.33% 20 0 0 4 9 10 0 20 4 43
That/Exceptions/ThatException.HasInner.cs 100.00% 6 0 0 0 0 0 0 6 0 6
That/Exceptions/ThatException.HasInnerException.cs 100.00% 3 0 0 0 0 0 0 3 0 3
That/Exceptions/ThatException.HasMessage.cs 100.00% 21 0 0 0 6 5 0 21 0 32
That/Exceptions/ThatException.HasMessageContaining.cs 86.05% 37 2 0 4 10 9 0 37 6 62
That/Exceptions/ThatException.HasParamName.cs 100.00% 43 0 0 0 21 19 0 43 0 83
That/Exceptions/ThatException.HasRecursiveInnerExceptions.cs 81.48% 22 2 0 3 10 11 0 22 5 48
That/Numbers/ThatNumber.IsBetween.cs 92.45% 49 4 0 0 12 16 0 49 4 81
That/Numbers/ThatNumber.IsFinite.cs 100.00% 18 0 0 0 4 8 0 18 0 30
That/Numbers/ThatNumber.IsGreaterThan.cs 83.33% 25 5 0 0 8 12 0 25 5 50
That/Numbers/ThatNumber.IsGreaterThanOrEqualTo.cs 83.33% 25 5 0 0 8 12 0 25 5 50
That/Numbers/ThatNumber.IsInfinite.cs 100.00% 12 0 0 0 4 8 0 12 0 24
That/Numbers/ThatNumber.IsLessThan.cs 83.33% 25 5 0 0 8 12 0 25 5 50
That/Numbers/ThatNumber.IsLessThanOrEqualTo.cs 83.33% 25 5 0 0 8 12 0 25 5 50
That/Numbers/ThatNumber.IsNaN.cs 100.00% 12 0 0 0 4 8 0 12 0 24
That/Numbers/ThatNumber.IsNegative.cs 100.00% 16 0 0 0 4 8 0 16 0 28
That/Numbers/ThatNumber.IsPositive.cs 100.00% 16 0 0 0 4 8 0 16 0 28
That/Objects/ThatObject.Is.cs 96.30% 26 1 0 0 10 4 0 26 1 41
That/Objects/ThatObject.IsExactly.cs 95.24% 20 1 0 0 6 4 0 20 1 31
That/Objects/ThatObject.IsNull.cs 100.00% 9 0 0 0 2 6 0 9 0 17
That/Objects/ThatObject.IsSameAs.cs 100.00% 15 0 0 0 5 6 0 15 0 26
That/Recording/ThatEventRecording.Triggered.cs 100.00% 1 0 0 0 0 0 0 1 0 1
That/Recording/ThatEventRecording.TriggeredPropertyChanged.cs 100.00% 2 0 0 0 1 0 0 2 0 3
That/Recording/ThatEventRecording.TriggeredPropertyChangedFor.cs 69.23% 9 4 0 0 4 6 0 9 4 23
That/Signaling/ThatSignaler.Signaled.cs 94.96% 113 2 0 4 38 66 0 113 6 223
That/Spans/ThatSpan.IsParsableInto.cs 88.46% 46 4 0 2 14 20 0 46 6 86
That/Streams/ThatStream.IsReadable.cs 100.00% 8 0 0 0 1 6 0 8 0 15
That/Streams/ThatStream.IsReadOnly.cs 100.00% 9 0 0 0 1 6 0 9 0 16
That/Streams/ThatStream.IsSeekable.cs 100.00% 8 0 0 0 1 6 0 8 0 15
That/Streams/ThatStream.IsWritable.cs 100.00% 8 0 0 0 1 6 0 8 0 15
That/Streams/ThatStream.IsWriteOnly.cs 100.00% 9 0 0 0 1 6 0 9 0 16
That/Strings/ThatString.Contains.cs 98.70% 76 1 0 0 22 24 0 76 1 123
That/Strings/ThatString.HasLines.cs 51.85% 14 2 0 11 10 10 0 14 13 47
That/Strings/ThatString.IsEmpty.cs 100.00% 10 0 0 0 2 6 0 10 0 18
That/Strings/ThatString.IsLowerCased.cs 100.00% 11 0 0 0 2 4 0 11 0 17
That/Strings/ThatString.IsNull.cs 100.00% 9 0 0 0 2 6 0 9 0 17
That/Strings/ThatString.IsNullOrEmpty.cs 100.00% 9 0 0 0 2 4 0 9 0 15
That/Strings/ThatString.IsNullOrWhiteSpace.cs 100.00% 10 0 0 0 2 4 0 10 0 16
That/Strings/ThatString.IsParsableInto.cs 87.10% 27 3 0 1 10 10 0 27 4 51
That/Strings/ThatString.IsUpperCased.cs 100.00% 11 0 0 0 2 4 0 11 0 17
That/ThatGeneric.IsEquatableTo.cs 100.00% 13 0 0 0 4 4 0 13 0 21
That/ThatGeneric.Satisfies.cs 86.96% 20 3 0 0 8 8 0 20 3 39
That/TimeOnlys/ThatNullableTimeOnly.IsAfter.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/TimeOnlys/ThatNullableTimeOnly.IsBefore.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/TimeOnlys/ThatNullableTimeOnly.IsBetween.cs 88.64% 39 5 0 0 6 8 0 39 5 58
That/TimeOnlys/ThatNullableTimeOnly.IsOnOrAfter.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/TimeOnlys/ThatNullableTimeOnly.IsOnOrBefore.cs 93.55% 29 2 0 0 6 6 0 29 2 43
That/TimeOnlys/ThatTimeOnly.IsAfter.cs 100.00% 23 0 0 0 5 6 0 23 0 34
That/TimeOnlys/ThatTimeOnly.IsBefore.cs 100.00% 23 0 0 0 5 6 0 23 0 34
That/TimeOnlys/ThatTimeOnly.IsBetween.cs 100.00% 35 0 0 0 6 8 0 35 0 49
That/TimeOnlys/ThatTimeOnly.IsOnOrAfter.cs 100.00% 23 0 0 0 5 6 0 23 0 34
That/TimeOnlys/ThatTimeOnly.IsOnOrBefore.cs 100.00% 23 0 0 0 5 6 0 23 0 34
That/TimeSpans/ThatNullableTimeSpan.IsBetween.cs 88.64% 39 5 0 0 6 8 0 39 5 58
That/TimeSpans/ThatNullableTimeSpan.IsGreaterThan.cs 100.00% 24 0 0 0 5 6 0 24 0 35
That/TimeSpans/ThatNullableTimeSpan.IsGreaterThanOrEqualTo.cs 100.00% 24 0 0 0 5 6 0 24 0 35
That/TimeSpans/ThatNullableTimeSpan.IsLessThan.cs 100.00% 24 0 0 0 5 6 0 24 0 35
That/TimeSpans/ThatNullableTimeSpan.IsLessThanOrEqualTo.cs 100.00% 24 0 0 0 5 6 0 24 0 35
That/TimeSpans/ThatNullableTimeSpan.IsNegative.cs 100.00% 9 0 0 0 2 4 0 9 0 15
That/TimeSpans/ThatNullableTimeSpan.IsPositive.cs 100.00% 9 0 0 0 2 4 0 9 0 15
That/TimeSpans/ThatTimeSpan.IsBetween.cs 100.00% 35 0 0 0 6 8 0 35 0 49
That/TimeSpans/ThatTimeSpan.IsGreaterThan.cs 100.00% 24 0 0 0 5 6 0 24 0 35
That/TimeSpans/ThatTimeSpan.IsGreaterThanOrEqualTo.cs 100.00% 24 0 0 0 5 6 0 24 0 35
That/TimeSpans/ThatTimeSpan.IsLessThan.cs 100.00% 24 0 0 0 5 6 0 24 0 35
That/TimeSpans/ThatTimeSpan.IsLessThanOrEqualTo.cs 100.00% 24 0 0 0 5 6 0 24 0 35
That/TimeSpans/ThatTimeSpan.IsNegative.cs 100.00% 9 0 0 0 2 4 0 9 0 15
That/TimeSpans/ThatTimeSpan.IsPositive.cs 100.00% 9 0 0 0 2 4 0 9 0 15

The final mutation score is 90.72%

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

aweXpect.Core

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

The final mutation score is NaN%

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

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants