Skip to content

🧪 Add missing boundary tests for validateRowId#446

Merged
zknpr merged 2 commits into
mainfrom
testing-validate-rowid-boundaries-13190189215291149278
Jun 8, 2026
Merged

🧪 Add missing boundary tests for validateRowId#446
zknpr merged 2 commits into
mainfrom
testing-validate-rowid-boundaries-13190189215291149278

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

🎯 What: Added missing boundary tests for the validateRowId utility function.
📊 Coverage: Added tests for Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER (as both strings and numbers), BigInt handling, empty/whitespace strings (evaluating to 0), and float/scientific notation strings.
✨ Result: The validateRowId function now has comprehensive edge-case and type boundary testing, verifying its internal reliance on the Number() constructor correctly handles extreme inputs.


PR created automatically by Jules for task 13190189215291149278 started by @zknpr

Adds edge case coverage for `validateRowId` to verify its behavior with boundary integers (MAX/MIN_SAFE_INTEGER), bigints, empty/whitespace strings, and floating point formats.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sq-lite-explorer Ready Ready Preview, Comment Jun 8, 2026 12:23pm

@zknpr zknpr merged commit 54a452a into main Jun 8, 2026
4 checks passed
@zknpr zknpr deleted the testing-validate-rowid-boundaries-13190189215291149278 branch June 8, 2026 16:38
zknpr added a commit that referenced this pull request Jun 8, 2026
…puts (#456)

Reject blank/whitespace, fractional, scientific-notation, NaN/Infinity, unsafe-magnitude, and non-string/number/bigint inputs (null/boolean/array) that Number() would silently coerce into plausible-but-wrong rowids. Flips the #446 characterization tests to assert rejection; fixes two post-review test NITs (stale FakeEndpoint signature, tautological serializeDatabase assertion). Addresses the post-batch Codex review SHOULD-FIX + Gemini's high-priority type-coercion finding. CI green; CodeRabbit clean.
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.

1 participant