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

dennisdoomen / fluentassertions / 24312902651
97%
develop: 97%

Build:
Build:
LAST BUILD BRANCH: perf/reduce-equivalency-allocations
DEFAULT BRANCH: develop
Ran 12 Apr 2026 06:10PM 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

12 Apr 2026 06:00PM UTC coverage: 97.17% (-0.03%) from 97.196%
24312902651

push

github

dennisdoomen
Cache Node.Depth to avoid repeated string scanning

Node.Depth previously computed the depth on every call by counting '.' characters
in Subject.PathAndName using LINQ. This method is called in ShouldContinueThisDeep
for every AssertEquivalencyOf invocation, meaning it runs thousands of times during
a typical structural comparison.

The result is now memoised in a private int field (initialised to -1) and
recomputed only when AdjustForRemappedSubject changes the underlying path.

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

4079 of 4356 branches covered (93.64%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 1 file covered. (100.0%)

12 existing lines in 6 files now uncovered.

13155 of 13380 relevant lines covered (98.32%)

66164.21 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
88.64
0.0% Src/FluentAssertions/Equivalency/Node.cs
3
96.59
-2.68% Src/FluentAssertions/Equivalency/Steps/LooselyOrderedEquivalencyStrategy.cs
2
98.65
0.05% Src/FluentAssertions/Execution/AssertionChain.cs
2
96.7
0.11% Src/FluentAssertions/Execution/AssertionScope.cs
1
92.0
-8.0% Src/FluentAssertions/Equivalency/Selection/SelectMemberByPathSelectionRule.cs
1
93.33
-6.67% Src/FluentAssertions/Equivalency/Steps/ReadOnlyCollectionExtensions.cs
Jobs
ID Job ID Ran Files Coverage
1 24312902651.1 12 Apr 2026 06:10PM UTC 348
97.17
GitHub Action Run
Source Files on build 24312902651
  • Tree
  • List 348
  • Changed 170
  • Source Changed 11
  • Coverage Changed 169
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24312902651
  • 5c8141d1 on github
  • Prev Build on perf/reduce-equivalency-allocations (#24307980083)
  • Next Build on perf/reduce-equivalency-allocations (#24314125428)
  • 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