test: add test coverage for tag.go#1883
Conversation
|
DCO issue, you need to |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1883 +/- ##
==========================================
+ Coverage 85.30% 85.33% +0.02%
==========================================
Files 143 143
Lines 6743 6743
==========================================
+ Hits 5752 5754 +2
+ Misses 705 703 -2
Partials 286 286 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes oras-project#1867 Added comprehensive unit tests for the TagHandler functionality in cmd/oras/internal/display/metadata/text/tag.go including tests for: - NewTagHandler constructor - OnTagging method behavior - OnTagged method with different tag names - Error handling - Interface compliance Signed-off-by: Manish <162974418+ManishhDev@users.noreply.github.com> Signed-off-by: ManishhDev <codermanishhh@gmail.com>
ea35ced to
1fb5ec0
Compare
|
Hello @TerryHowe, I noticed that this repository is currently not participating in Hacktoberfest. To help contributors like me, could you please do one of the following? Add the hacktoberfest topic to the repository (so all PRs count) OR add the hacktoberfest-accepted label to this PR This will make my contribution eligible for Hacktoberfest completion and benefit future contributors! For more details, please see the Hacktoberfest Participation page or the official docs. Thank you for supporting open source and the community! |
|
Done. Thanks for your contribution! |
Fixes #1867
Added comprehensive unit tests for the TagHandler functionality in cmd/oras/internal/display/metadata/text/tag.go including tests for:
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Please check the following list: