@@ -165,6 +165,7 @@ func Test_enrichDescriptor(t *testing.T) {
165165 ` ),
166166 manifestMediaType : "application/vnd.oci.image.index.v1+json" ,
167167 checkDesc : func (t * testing.T , gotDesc , inputDesc ocispec.Descriptor ) {
168+ t .Helper ()
168169 if got , want := gotDesc .ArtifactType , "application/vnd.example" ; got != want {
169170 t .Errorf ("ArtifactType = %s, want %s" , got , want )
170171 }
@@ -192,6 +193,7 @@ func Test_enrichDescriptor(t *testing.T) {
192193 ` ),
193194 manifestMediaType : "application/vnd.oci.image.manifest.v1+json" ,
194195 checkDesc : func (t * testing.T , gotDesc , inputDesc ocispec.Descriptor ) {
196+ t .Helper ()
195197 if got , want := gotDesc .ArtifactType , "application/vnd.example" ; got != want {
196198 t .Errorf ("ArtifactType = %s, want %s" , got , want )
197199 }
@@ -226,6 +228,7 @@ func Test_enrichDescriptor(t *testing.T) {
226228 ` ),
227229 manifestMediaType : "application/vnd.oci.image.manifest.v1+json" ,
228230 checkDesc : func (t * testing.T , gotDesc , inputDesc ocispec.Descriptor ) {
231+ t .Helper ()
229232 if got , want := gotDesc .ArtifactType , "application/vnd.example" ; got != want {
230233 t .Errorf ("ArtifactType = %s, want %s" , got , want )
231234 }
@@ -241,6 +244,7 @@ func Test_enrichDescriptor(t *testing.T) {
241244 manifestBytes : []byte (`{}` ),
242245 manifestMediaType : "application/vnd.custom" ,
243246 checkDesc : func (t * testing.T , gotDesc , inputDesc ocispec.Descriptor ) {
247+ t .Helper ()
244248 if ! reflect .DeepEqual (gotDesc , inputDesc ) {
245249 t .Errorf ("result does not match input: got %#v, want %#v" , gotDesc , inputDesc )
246250 }
0 commit comments