Skip to content

test: add test coverage for tag.go#1

Merged
ManishhDev merged 4 commits into
mainfrom
ManishhDev-patch-1
Oct 23, 2025
Merged

test: add test coverage for tag.go#1
ManishhDev merged 4 commits into
mainfrom
ManishhDev-patch-1

Conversation

@ManishhDev

Copy link
Copy Markdown
Owner

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

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:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

…lob* handlers (oras-project#1861)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TerryHowe <104113+TerryHowe@users.noreply.github.com>
Co-authored-by: shizhMSFT <32161882+shizhMSFT@users.noreply.github.com>
Co-authored-by: Terry Howe <terrylhowe@gmail.com>
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>
dependabot Bot and others added 2 commits October 23, 2025 06:13
…/test/e2e (oras-project#1885)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage for cmd/oras/internal/display/metadata/text/tag.go

3 participants