test(complete/bash): Add static vs dynamic gap analysis#6267
Draft
AndreasBackx wants to merge 1 commit intoclap-rs:masterfrom
Draft
test(complete/bash): Add static vs dynamic gap analysis#6267AndreasBackx wants to merge 1 commit intoclap-rs:masterfrom
AndreasBackx wants to merge 1 commit intoclap-rs:masterfrom
Conversation
Add systematic comparison tests between static (AOT) and dynamic completion output for Bash. Each test sends the same input to both runtimes and documents the expected output, making gaps between the two visible for review before stabilization. Scenarios covered: - Top-level subcommands - Nested subcommands - Long options - Option values with = and space-separated - Filtered option values - Empty subcommand - Special character handling - Aliases Part of clap-rs#3916
Member
|
See also #6270 |
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.
Summary
Adds systematic side-by-side tests comparing static (AOT) and dynamic completion output for Bash. These are the final gate before stabilization — they document where dynamic completions match or diverge from static ones.
Part of #3916
Changes
clap_complete/tests/testsuite/bash.rs: Newgap_analysismodule with 8 test scenarios top-level subcommands, nested subcommands, long options, option values (= and space-separated), filtered values, empty subcommand, special characters, and aliases.Test Plan
cargo test -p clap_complete --features unstable-dynamic— all tests passunstable-shell-testsfeature and Bash installed