Skip to content

Refactor SplitList - #509

Merged
axunonb merged 1 commit into
mainfrom
pr/splitlist
Nov 2, 2025
Merged

Refactor SplitList#509
axunonb merged 1 commit into
mainfrom
pr/splitlist

Conversation

@axunonb

@axunonb axunonb commented Nov 2, 2025

Copy link
Copy Markdown
Member

Class Format:

  • Explicitly limit the max. number of splits to int.MaxValue (had this limit implicitly before)
  • Format.Split(...) now creates the SplitList cache, instead of the SplitList indexer

Class SplitList:

  • Added new method CreateSplitCache()
  • SplitList indexer throws if SplitList cache is not filled
  • Add missing implementations of IEnumerator<Format> GetEnumerator() and IEnumerator IEnumerable.GetEnumerator()

Enhance unit test coverage for SplitList

Class `Format`:
* Explicitly limit the max. number of splits to `int.MaxValue`
* `Format.Split(...)` now creates the `SplitList` cache, instead of the `SplitList` indexer

Class `SplitList`:
* Added new method `CreateSplitCache()`
* `SplitList` indexer throws if `SplitList` cache is not filled

Enhance unit test coverage for `SplitList`
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2025

Copy link
Copy Markdown

@axunonb
axunonb marked this pull request as ready for review November 2, 2025 21:34

@imprima imprima left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov

codecov Bot commented Nov 2, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97%. Comparing base (f43120a) to head (d9c0da0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #509   +/-   ##
===================================
  Coverage    97%    97%           
===================================
  Files        99     99           
  Lines      3424   3431    +7     
===================================
+ Hits       3319   3339   +20     
+ Misses      105     92   -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@axunonb
axunonb merged commit 058f615 into main Nov 2, 2025
9 checks passed
@axunonb
axunonb deleted the pr/splitlist branch November 2, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants