Skip to content

refactor(tests): final 3-way split + delete string.cpp (closes #3131) (re-target of #3156) - #3173

Merged
zackees merged 1 commit into
masterfrom
feat/3131-string-basic-a-extract-and-delete
Jun 16, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/3131-string-basic-a-extract-and-delete

Conversation

@zackees

@zackees zackees commented Jun 16, 2026

Copy link
Copy Markdown
Member

Re-opening of #3156. Final extraction — closes #3131.

…te original (closes #3131)

Final extraction in #3131 (string.cpp split). The remaining 'str.cpp
basic ops' section (was lines 1-2283 of original, ~2257 LOC of content)
was larger than the meta's initial estimate of ~870 LOC, so this PR
splits it into THREE files instead of one, keeping each under 1K LOC:

  - string_basic_ops.cpp (693 LOC): construction, reserve, FixedVector
    interop, long strings, overflow, concat, insert, erase, replace
  - string_search_a.cpp (666 LOC): rfind, find_first_of, find_last_of
  - string_search_b.cpp (953 LOC): find_first_not_of, find_last_not_of

With these three files, the original string.cpp becomes empty (only the
FL_TEST_FILE wrapper would remain) and is deleted.

Summary of #3131 — all 11 extractions:
  PR  | New file                       | LOC
  ----+--------------------------------+-----
  #3146 | string_memory_bugs.cpp       | 389
  #3147 | string_type_erased.cpp       | 208
  #3148 | string_append_concat.cpp     | 320
  #3149 | string_comparison_hash.cpp   | 285
  #3150 | string_optimization.cpp      | 474
  #3151 | string_comprehensive.cpp     | 786
  #3153 | string_ctor_iterator.cpp     | 979
  #3154 | string_basic_b.cpp           | 864
  this  | string_basic_ops.cpp         | 693
  this  | string_search_a.cpp          | 666
  this  | string_search_b.cpp          | 953
        | original string.cpp DELETED  |

Every resulting .cpp file is under 1,000 LOC. Original 6,468 LOC monolith
fully decomposed across 11 PRs + 1 deletion.

Tests pass: bash test fl_stl_string_basic_ops --cpp (1/1).

Stacked on feat/3131-string-basic-b-extract (PR #3154).

Closes #3131 once all stacked PRs merge. Meta tracking issue: #3127.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@zackees, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 1 minute and 41 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 195a0786-58cd-4ba8-a031-6fc66f7fbbec

📥 Commits

Reviewing files that changed from the base of the PR and between 4ec9d45 and bf80e88.

📒 Files selected for processing (4)
  • tests/fl/stl/string.cpp
  • tests/fl/stl/string_basic_ops.cpp
  • tests/fl/stl/string_search_a.cpp
  • tests/fl/stl/string_search_b.cpp
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/3131-string-basic-a-extract-and-delete

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees
zackees merged commit 7bf2581 into master Jun 16, 2026
4 checks passed
@zackees
zackees deleted the feat/3131-string-basic-a-extract-and-delete branch June 16, 2026 04:49
@fastled-project-sync fastled-project-sync Bot moved this from Done to Triage in FastLED Tracker Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

Split tests/fl/stl/string.cpp (6,468 LOC) into 9 files of <1K LOC each (sub-issue of #3127)

1 participant