Skip to content

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

Merged
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:fix_TestNewSaveCommandSuccess
Oct 8, 2024
Merged

cli/command/image: fix TestNewSaveCommandSuccess to actually test#5520
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:fix_TestNewSaveCommandSuccess

Conversation

@thaJeztah

Copy link
Copy Markdown
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 <github@gone.nl>
@codecov-commenter

codecov-commenter commented Oct 8, 2024

Copy link
Copy Markdown

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           

@robmry robmry left a comment

Copy link
Copy Markdown
Contributor

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
@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

3 participants