test: assert authoringMetaV2 word names and descriptions#130
test: assert authoringMetaV2 word names and descriptions#130thedavidmeister wants to merge 7 commits into
Conversation
Closes #84 Co-Authored-By: Claude <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 56 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughA new external pure test function, ChangesAuthoring metadata content test
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Producer note: backing off per protocol — this branch already carries a |
|
🤖 ai:producer |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/src/concrete/FlareFtsoWords.pointers.t.sol`:
- Around line 54-71: The tests `testAuthoringMetaV2Content` and
`testAuthoringMetaContent` overlap by decoding
`LibFlareFtsoSubParser.authoringMetaV2()` and asserting the same `word`/length
coverage for the same three entries. Consolidate this into a single test by
removing `testAuthoringMetaV2Content` and strengthening
`testAuthoringMetaContent` to assert the full description strings for each
`AuthoringMetaV2` entry, keeping the existing unique `word` checks in that one
test.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 40d77796-75b3-4aac-83db-d097b47d396c
📒 Files selected for processing (1)
test/src/concrete/FlareFtsoWords.pointers.t.sol
|
🤖 ai:vetter |
|
Rework note (human): now stale after #136 merged. Line 24 asserts the OLD |
…work) Merges main (the #136 description rewrite landed after this branch) and pins authoringMeta[2].description to the source string in LibFlareFtsoSubParser.sol. Co-Authored-By: Claude <noreply@anthropic.com>
Summary
testSubParserParseMetaverified thatauthoringMetaV2()produces bytes that hash correctly into the parse meta, but never asserted the actual word names or description strings. Any mutation to a word name or description text would silently pass.Adds
testAuthoringMetaV2Contentwhich decodes the authoring meta and pins:wordfield (ftso-current-price-usd,ftso-current-price-pair,sflr-exchange-rate)Mutation-validated: flipping
"ftso-current-price-usd"→"ftso-current-price-us"in the source produces abytes32assertion failure.Closes #84
Co-Authored-By: Claude noreply@anthropic.com
Summary by CodeRabbit