Skip to content

Add more tests to improve code coverage#2237

Merged
dearchap merged 1 commit intourfave:mainfrom
dearchap:improve_test_cov_11292025
Nov 30, 2025
Merged

Add more tests to improve code coverage#2237
dearchap merged 1 commit intourfave:mainfrom
dearchap:improve_test_cov_11292025

Conversation

@dearchap
Copy link
Contributor

What type of PR is this?

(REQUIRED)

  • cleanup

What this PR does / why we need it:

(REQUIRED)

Improve test coverage to beyond 99%

Which issue(s) this PR fixes:

(REQUIRED)

Special notes for your reviewer:

(fill-in or delete this section)

Testing

(fill-in or delete this section)

make test

Release Notes

(REQUIRED)

Added more tests to improve coverage

@dearchap dearchap requested a review from a team as a code owner November 30, 2025 17:01
@dearchap dearchap merged commit 1f225b1 into urfave:main Nov 30, 2025
8 of 9 checks passed
}

if exitErr, ok := err.(ExitCoder); ok {
if err.Error() != "" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dearchap was this code change intentional? Calling Exit with an empty message now adds an unnecessary empty line to stderr:

cli.Exit("", exitError.ExitCode())

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.

3 participants