Skip to content

test: cover flag names with a parent, unknown Count and direct ErrorFormatter - #2548

Open
joshbarros wants to merge 1 commit into
urfave:mainfrom
joshbarros:test/2537-coverage-gaps
Open

joshbarros wants to merge 1 commit into
urfave:mainfrom
joshbarros:test/2537-coverage-gaps

Conversation

@joshbarros

Copy link
Copy Markdown

Fixes #2537

Adds test-only coverage for three branches that were previously exercised only indirectly:

  • Command.FlagNames merging the parent's flag names.
  • Command.Count with an unknown flag name.
  • HandleExitCoder with a direct ErrorFormatter (the %+v branch, not the MultiError path).

No production code changes. go test ./... passes.

…ormatter

Exercise the parent flag-name lookup in Command.FlagNames, Command.Count with an unknown flag, and the direct ErrorFormatter branch of HandleExitCoder. Test-only coverage for urfave#2537.
@joshbarros
joshbarros requested a review from a team as a code owner November 17, 2026 09:45

This branch has not been deployed

No deployments
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.

Test coverage gaps: Command.FlagNames parent lookup, Command.Count unknown flag, HandleExitCoder direct ErrorFormatter

1 participant