mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
chore: fix cataloger_test (#1603)
Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
parent
f5e20521e0
commit
4bf677d555
@ -179,10 +179,8 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) {
|
|||||||
Version: "5.12.5",
|
Version: "5.12.5",
|
||||||
Type: "binary",
|
Type: "binary",
|
||||||
PURL: "pkg:generic/perl@5.12.5",
|
PURL: "pkg:generic/perl@5.12.5",
|
||||||
Locations: singleLocation("perl"),
|
Locations: locations("perl"),
|
||||||
Metadata: pkg.BinaryMetadata{
|
Metadata: metadata("perl-binary"),
|
||||||
Classifier: "perl-binary",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -193,10 +191,8 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) {
|
|||||||
Version: "5.20.0",
|
Version: "5.20.0",
|
||||||
Type: "binary",
|
Type: "binary",
|
||||||
PURL: "pkg:generic/perl@5.20.0",
|
PURL: "pkg:generic/perl@5.20.0",
|
||||||
Locations: singleLocation("perl"),
|
Locations: locations("perl"),
|
||||||
Metadata: pkg.BinaryMetadata{
|
Metadata: metadata("perl-binary"),
|
||||||
Classifier: "perl-binary",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -207,10 +203,8 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) {
|
|||||||
Version: "5.37.8",
|
Version: "5.37.8",
|
||||||
Type: "binary",
|
Type: "binary",
|
||||||
PURL: "pkg:generic/perl@5.37.8",
|
PURL: "pkg:generic/perl@5.37.8",
|
||||||
Locations: singleLocation("perl"),
|
Locations: locations("perl"),
|
||||||
Metadata: pkg.BinaryMetadata{
|
Metadata: metadata("perl-binary"),
|
||||||
Classifier: "perl-binary",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -635,6 +629,8 @@ func (p *panicyResolver) FileMetadataByLocation(_ source.Location) (source.FileM
|
|||||||
return source.FileMetadata{}, errors.New("not implemented")
|
return source.FileMetadata{}, errors.New("not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ source.FileResolver = (*panicyResolver)(nil)
|
||||||
|
|
||||||
func Test_Cataloger_ResilientToErrors(t *testing.T) {
|
func Test_Cataloger_ResilientToErrors(t *testing.T) {
|
||||||
c := NewCataloger()
|
c := NewCataloger()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user