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

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

@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 Resolved
Comment thread cmd/oras/internal/output/print_test.go Resolved
Comment thread cmd/oras/internal/output/print_test.go Resolved

@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
@Wwwsylvia Wwwsylvia mentioned this pull request Sep 3, 2025
4 of 6 tasks
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