Skip to content

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