Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test cases
Browse files Browse the repository at this point in the history
Signed-off-by: aikido[bot] <[email protected]>
Signed-off-by: Stijn Taelemans <[email protected]>
lem-onade committed Aug 16, 2024
1 parent 4ff60ee commit a4cf3a4
Showing 3 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions syft/pkg/cataloger/binary/classifier_cataloger_test.go
Original file line number Diff line number Diff line change
@@ -1039,6 +1039,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
Metadata: metadata("wordpress-cli-binary"),
},
},
{
logicalFixture: "chrome/126.0.6478.182/linux-amd64",
expected: pkg.Package{
Name: "chrome",
Version: "126.0.6478.182",
Type: "binary",
PURL: "pkg:generic/[email protected]",
Locations: locations("chrome"),
Metadata: metadata("chrome-binary"),
},
},
{
logicalFixture: "chrome/127.0.6533.119/linux-amd64",
expected: pkg.Package{
Name: "chrome",
Version: "127.0.6533.119",
Type: "binary",
PURL: "pkg:generic/[email protected]",
Locations: locations("chrome"),
Metadata: metadata("chrome-binary"),
},
},
}

for _, test := range tests {
Binary file not shown.
Binary file not shown.

0 comments on commit a4cf3a4

Please sign in to comment.