Skip to content

Commit

Permalink
Merge pull request #2673 from mtrmac/transport-tests
Browse files Browse the repository at this point in the history
Add a comment justifying lack of unit test coverage
  • Loading branch information
vrothberg authored Jan 7, 2025
2 parents b120b24 + 629fe6a commit 0d450be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oci/layout/oci_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (ref ociReference) getManifestDescriptor() (imgspecv1.Descriptor, int, erro
}

switch {
case ref.image != "" && ref.sourceIndex != -1:
case ref.image != "" && ref.sourceIndex != -1: // Coverage: newReference refuses to create such references.
return imgspecv1.Descriptor{}, -1, fmt.Errorf("Internal error: Cannot have both ref %s and source index @%d",
ref.image, ref.sourceIndex)

Expand Down

0 comments on commit 0d450be

Please sign in to comment.