Repository navigation
test(dev,bindings): deduplicate binding generator assertions - #9609
Merged
Merged
Conversation
PsiACE
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #9581.
Rationale for this change
The binding tests already exercise several option conversions and public C++ declarations that the generator tests also check as Rust or C++ source text. The documentation tests also duplicate the generators' wording rules, which makes a prose change require edits to two copies of the same rules.
What changes are included in this PR?
ReadRangediscriminants, and the type returned byReadRange::Full()in the C++ suite. Keep a generator check for native and fixed integer widths, which can be aliases on a 64-bit test host.copy_frombehavior. The generator tests also cover escaping, public names, ownership, schema, and frozen ABI ordering.Are there any user-facing changes?
This PR changes tests only. Regeneration reproduces the checked-in binding outputs.
Breaking changes
AI Usage Statement
magpie/codex/gpt-6.2-astraathigheffort to map generator assertions to independent binding tests and identify ABI and schema checks to preserve.magpie/codex/gpt-6.2-solatmaxeffort to implement and validate the test changes and draft this description. The binding tests used local memory, filesystem, and HTTP fixtures. Generator checks cover valid Node.js copy tuning values that the filesystem fixture cannot observe.magpie/codex/gpt-6.2-solathigheffort for both independent reviews. The first identified gaps in chunk sizing, generated docs, and the C++ range factory. The follow-up reviewed the signed candidate and reran the focused Python and C++ tests.gemini-4-neonathigheffort to copy-edit the PR title and description.