-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Keith Zantow <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,10 +179,8 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) { | |
Version: "5.12.5", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: singleLocation("perl"), | ||
Metadata: pkg.BinaryMetadata{ | ||
Classifier: "perl-binary", | ||
}, | ||
Locations: locations("perl"), | ||
Metadata: metadata("perl-binary"), | ||
}, | ||
}, | ||
{ | ||
|
@@ -193,10 +191,8 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) { | |
Version: "5.20.0", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: singleLocation("perl"), | ||
Metadata: pkg.BinaryMetadata{ | ||
Classifier: "perl-binary", | ||
}, | ||
Locations: locations("perl"), | ||
Metadata: metadata("perl-binary"), | ||
}, | ||
}, | ||
{ | ||
|
@@ -207,10 +203,8 @@ func Test_Cataloger_DefaultClassifiers_PositiveCases(t *testing.T) { | |
Version: "5.37.8", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: singleLocation("perl"), | ||
Metadata: pkg.BinaryMetadata{ | ||
Classifier: "perl-binary", | ||
}, | ||
Locations: locations("perl"), | ||
Metadata: metadata("perl-binary"), | ||
}, | ||
}, | ||
{ | ||
|
@@ -635,6 +629,8 @@ func (p *panicyResolver) FileMetadataByLocation(_ source.Location) (source.FileM | |
return source.FileMetadata{}, errors.New("not implemented") | ||
} | ||
|
||
var _ source.FileResolver = (*panicyResolver)(nil) | ||
|
||
func Test_Cataloger_ResilientToErrors(t *testing.T) { | ||
c := NewCataloger() | ||
|
||
|