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

dennisdoomen / fluentassertions / 24040157145
97%
develop: 97%

Build:
Build:
LAST BUILD BRANCH: perf/speed-up-be-equivalent-to
DEFAULT BRANCH: develop
Ran 06 Apr 2026 04:37PM 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

06 Apr 2026 04:27PM UTC coverage: 97.181% (-0.002%) from 97.183%
24040157145

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 %.

19 of 19 new or added lines in 5 files covered. (100.0%)

1 existing line in 1 file now uncovered.

13092 of 13316 relevant lines covered (98.32%)

66799.45 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.68
0.74% Src/FluentAssertions/Equivalency/Steps/LooselyOrderedEquivalencyStrategy.cs
Jobs
ID Job ID Ran Files Coverage
1 24040157145.1 06 Apr 2026 04:37PM UTC 348
97.18
GitHub Action Run
Source Files on build 24040157145
  • Tree
  • List 348
  • Changed 167
  • Source Changed 4
  • Coverage Changed 167
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24040157145
  • 9f9964ba on github
  • Prev Build on perf/speed-up-be-equivalent-to (#24038663532)
  • Next Build on perf/speed-up-be-equivalent-to (#24154245225)
  • 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