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

dennisdoomen / fluentassertions / 24038663532
97%
develop: 97%

Build:
Build:
LAST BUILD BRANCH: perf/speed-up-be-equivalent-to
DEFAULT BRANCH: develop
Ran 06 Apr 2026 03:56PM UTC
Jobs 1
Files 347
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 03:46PM UTC coverage: 97.183%. First build
24038663532

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>

4045 of 4318 branches covered (93.68%)

Branch coverage included in aggregate %.

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

13100 of 13324 relevant lines covered (98.32%)

67133.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24038663532.1 06 Apr 2026 03:56PM UTC 347
97.18
GitHub Action Run
Source Files on build 24038663532
  • Tree
  • List 347
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24038663532
  • eee6cb79 on github
  • Next Build on perf/speed-up-be-equivalent-to (#24040157145)
  • 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