docker / cli

The Docker CLI
Apache License 2.0
4.74k stars 1.88k forks source link

test: global force exit #5182

Open Benehiko opened 1 week ago

Benehiko commented 1 week ago

- What I did

Testing global signal handling in the CLI.

- How I did it

Reusing go test to execute some parts of the CLI and verify the exit code on SIGINT.

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

codecov-commenter commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 61.78%. Comparing base (b83cf58) to head (dddf757).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #5182 +/- ## ========================================== + Coverage 61.29% 61.78% +0.49% ========================================== Files 294 297 +3 Lines 20773 20781 +8 ========================================== + Hits 12733 12840 +107 + Misses 7123 7027 -96 + Partials 917 914 -3 ```