-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(cardinal): consolidate test components #821
refactor(cardinal): consolidate test components #821
Conversation
…nvert message tests to table-driven format\n- Create TestMessageRegistration for duplicate scenarios\n- Consolidate error handling tests into TestTransactionProcessing\n- Add clear test case names and descriptions\n- Remove duplicate test functions Co-Authored-By: Scott Sunarto <[email protected]>
- Create cardinal/testsuite package for shared test components - Move LocationComponent to testsuite package - Update import references in test files - Fix gci formatting issues Co-Authored-By: Scott Sunarto <[email protected]>
Your org has enabled the Graphite merge queue for merging into mainAdd the label “graphite/merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
Add "(aside)" to your comment to have me ignore it. |
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Co-Authored-By: Scott Sunarto <[email protected]>
name: "handles negative coordinates", | ||
loc: LocationComponent{ | ||
X: -5, | ||
Y: -15, | ||
}, | ||
x: -5, | ||
y: -15, | ||
wantName: "location", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The LocationComponent
uses uint64
fields which cannot store negative values, but this test attempts to use negative coordinates (-5, -15). Either the test values should be updated to use non-negative numbers, or if negative coordinates are a valid use case, the component fields should be changed to int64
.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
Co-Authored-By: Scott Sunarto <[email protected]>
Co-Authored-By: Scott Sunarto <[email protected]>
Co-Authored-By: Scott Sunarto <[email protected]>
Co-Authored-By: Scott Sunarto <[email protected]>
Co-Authored-By: Scott Sunarto <[email protected]>
Co-Authored-By: Scott Sunarto <[email protected]>
Co-Authored-By: Scott Sunarto <[email protected]>
Co-Authored-By: Scott Sunarto <[email protected]>
Consolidates scattered test components into a shared testutils package and improves test organization.
Link to Devin run: https://app.devin.ai/sessions/ec99bdb55f144590b1df311d347070ae
Changes: