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

copy: Don't print "skipped: 0.0b = 0.00%" #2576

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

cgwalters
Copy link
Contributor

copy: Add unit tests for progress output

Prep for more work.

Signed-off-by: Colin Walters [email protected]


copy: Don't print "skipped: 0.0b = 0.00%"

I think this is just visually noisy. If we didn't do a partial
fetch then let's just not say anything about it.

Signed-off-by: Colin Walters [email protected]


Prep for more work.

Signed-off-by: Colin Walters <[email protected]>
I think this is just visually noisy. If we didn't do a partial
fetch then let's just not say anything about it.

Signed-off-by: Colin Walters <[email protected]>
Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks! The tests make this really nice to review.

"github.com/vbauerster/mpb/v8/decor"
)

func TestCustomPartialBlobDecorFunc(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

(This works just fine. In Go, it is idiomatic to have table-driven tests, compare e.g. TestUpdatedBlobInfoFromUpload.)

@mtrmac mtrmac merged commit 24262ba into containers:main Sep 20, 2024
10 checks passed
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.

2 participants