Skip to content

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

Merged
mtrmac merged 2 commits intocontainers:mainfrom
cgwalters:no-skipped-if-zero
Sep 20, 2024
Merged

copy: Don't print "skipped: 0.0b = 0.00%"#2576
mtrmac merged 2 commits intocontainers:mainfrom
cgwalters:no-skipped-if-zero

Conversation

@cgwalters
Copy link
Copy Markdown
Contributor

copy: Add unit tests for progress output

Prep for more work.

Signed-off-by: Colin Walters walters@verbum.org


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 walters@verbum.org


Prep for more work.

Signed-off-by: Colin Walters <walters@verbum.org>
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 <walters@verbum.org>
Copy link
Copy Markdown
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
Copy Markdown
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
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