Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/docker: add tests for flag-completions, and refactor #5542

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

thaJeztah
Copy link
Member

Remove the registerCompletionFuncForGlobalFlags for now, as the error it returned was ignored, so it didn't add much benefit, other than abstracting things.

Split the underlying completion-functions to separate functions, and add some basic tests for them.

Remove the completions helper, as it now didn't add much, and it saved having the dependency on the package.

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

Remove the registerCompletionFuncForGlobalFlags for now, as
the error it returned was ignored, so it didn't add much
benefit, other than abstracting things.

Split the underlying completion-functions to separate
functions, and add some basic tests for them.

Remove the completions helper, as it now didn't add much,
and it saved having the dependency on the package.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.48%. Comparing base (3865327) to head (670f818).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5542      +/-   ##
==========================================
+ Coverage   59.45%   59.48%   +0.03%     
==========================================
  Files         345      345              
  Lines       29090    29088       -2     
==========================================
+ Hits        17296    17304       +8     
+ Misses      10821    10814       -7     
+ Partials      973      970       -3     

Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 8a7c5ae into docker:master Oct 18, 2024
104 checks passed
@thaJeztah thaJeztah deleted the base_completion_tests branch October 18, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants