test: only zsh pins the finite option values cli.md claims for every shell #220
Labels
No labels
priority/P0
priority/P1
priority/P2
release/v0.1.0
status/blocked
status/planned
type/bug
type/design
type/test-gap
type/tracker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
natsukium/felis#220
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
docs/reference/cli.md:494-496now states that--formatandsessions capture --source"complete to their listed values in every generated script, as they list them in--helpand in the man page" — a claim spanning bash, zsh and fish.The only test behind it,
zsh_script_offers_the_finite_option_values(crates/felis-cli/src/cli_completions.rs:898), asserts three literals againstscript(Shell::Zsh)alone.The claim is true today (bash emits
COMPREPLY=($(compgen -W "visible scrollback command-output last-command"...)); fish emits-l source ... -r -f -a "visible..."; clap_mangen emits a "Possible values" block), so this is a coverage gap, not a wrong statement.Failure mechanism: a later change that sets
hide_possible_values, or a bash/fish overlay incli_completions.rsthat rewrites the--source/--formatspecs, leavescli.md:494false with every test still green, because nothing outside zsh is exercised.Correction: the
script(shell)helper is already parameterized — loop the assertion over[Shell::Bash, Shell::Zsh, Shell::Fish]with the per-shell candidate spelling for each, so the doc sentence and the test cover the same three shells.Deferred from #187 because AC #2 explicitly scoped the required test to the zsh script plus
--help; the doc wording is verified true today, so widening coverage is hardening beyond the acceptance criteria.Split from #187.