• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dennisdoomen / fluentassertions / 24154245225
97%
develop: 97%

Build:
Build:
LAST BUILD BRANCH: perf/speed-up-be-equivalent-to
DEFAULT BRANCH: develop
Ran 08 Apr 2026 07:35PM UTC
Jobs 1
Files 348
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Apr 2026 07:27PM UTC coverage: 97.181%. Remained the same
24154245225

push

github

dennisdoomen
fix: GetFailureCount includes nested scope failures; add Discard() to prevent outer scope contamination

TryToMatchCount creates a dry-run AssertionScope with SkipFormattingForFailures=true.
When custom equivalency rules (e.g. Using<T>().WhenTypeIs<T>()) are applied, failures
go through AssertionRuleEquivalencyStep which wraps execution in its own inner scope.
Those inner-scope failures propagate to the dry-run scope's assertionStrategy.FailureMessages
rather than via CountFailure(), so GetFailureCount() was returning 0 for all pairs
(both matching and non-matching), causing incorrect Phase 1 match decisions and
wrong item pairing (e.g. in Should_methods_have_a_matching_overload test).

Fixes:
1. GetFailureCount() now returns failureCount + assertionStrategy.FailureMessages.Count()
   to capture both direct failures and failures propagated from nested scopes.
2. scope.Discard() added after GetFailureCount() in TryToMatchCount to prevent the
   accumulated failure messages from leaking to the outer BeEquivalentTo scope when
   the dry-run scope disposes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

4041 of 4314 branches covered (93.67%)

Branch coverage included in aggregate %.

37 of 38 new or added lines in 5 files covered. (97.37%)

2 existing lines in 1 file now uncovered.

13091 of 13315 relevant lines covered (98.32%)

68246.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.67
-0.02% Src/FluentAssertions/Equivalency/Steps/LooselyOrderedEquivalencyStrategy.cs

Coverage Regressions

Lines Coverage ∆ File
2
96.67
-0.02% Src/FluentAssertions/Equivalency/Steps/LooselyOrderedEquivalencyStrategy.cs
Jobs
ID Job ID Ran Files Coverage
1 24154245225.1 08 Apr 2026 07:35PM UTC 348
97.18
GitHub Action Run
Source Files on build 24154245225
  • Tree
  • List 348
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24154245225
  • d141c65b on github
  • Prev Build on perf/speed-up-be-equivalent-to (#24040157145)
  • Next Build on perf/speed-up-be-equivalent-to (#24155294585)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc