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

cli/command/image: fix TestNewSaveCommandSuccess to actually test #5520

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

thaJeztah
Copy link
Member

This test was added in moby@b2551c6 as part of a larger PR that implemented unit tests in various packages. In this specific test, it looks like the imageSaveFunc that's defined in the test-table was forgotten to be wired up, causing all tests to effectively be skipped.

This patch wires up the function so that it's used in the test.

- What I did

- How I did it

- How to verify it

- Description for the changelog

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

This test was added in [moby@b2551c6] as part of a larger PR that implemented
unit tests in various packages. In this specific test, it looks like the
`imageSaveFunc` that's defined in the test-table was forgotten to be wired
up, causing all tests to effectively be skipped.

This patch wires up the function so that it's used in the test.

[moby@b2551c6]: moby/moby@b2551c6

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

codecov-commenter commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.58%. Comparing base (1856229) to head (19eeb10).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5520   +/-   ##
=======================================
  Coverage   60.58%   60.58%           
=======================================
  Files         345      345           
  Lines       23456    23456           
=======================================
  Hits        14211    14211           
  Misses       8273     8273           
  Partials      972      972           

Copy link
Contributor

@robmry robmry 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 b64f265 into docker:master Oct 8, 2024
104 checks passed
@thaJeztah thaJeztah deleted the fix_TestNewSaveCommandSuccess branch October 8, 2024 17:57
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