Skip to content

chore: Increase print test coverage#1411

Merged
qweeah merged 5 commits into
oras-project:mainfrom
TerryHowe:increase-print-test-coverage
Jun 18, 2024
Merged

chore: Increase print test coverage#1411
qweeah merged 5 commits into
oras-project:mainfrom
TerryHowe:increase-print-test-coverage

Conversation

@TerryHowe

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Add more print test coverage

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
@codecov

codecov Bot commented Jun 17, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.32%. Comparing base (4440be1) to head (1f3856d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1411   +/-   ##
=======================================
  Coverage   85.32%   85.32%           
=======================================
  Files         107      107           
  Lines        3795     3795           
=======================================
  Hits         3238     3238           
  Misses        333      333           
  Partials      224      224           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Need to rename test function to be compliant with suggested practices in Golang docs:

E.g. the naming convention to declare examples for the package, a function F, a type T and method M on type T are:

func Example() { ... }
func ExampleF() { ... }
func ExampleT() { ... }
func ExampleT_M() { ... }

Multiple example functions for a package/type/function/method may be provided by appending a distinct suffix to the name. The suffix must start with a lower-case letter.

Comment thread cmd/oras/internal/output/print_test.go Outdated
Comment thread cmd/oras/internal/output/print_test.go Outdated
Comment thread cmd/oras/internal/output/print_test.go Outdated
TerryHowe and others added 4 commits June 18, 2024 05:39
Co-authored-by: Billy Zha <qweeah@gmail.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Co-authored-by: Billy Zha <qweeah@gmail.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Co-authored-by: Billy Zha <qweeah@gmail.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>

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

@qweeah qweeah merged commit a84af2f into oras-project:main Jun 18, 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