Skip to content

Commit

Permalink
test: add test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Stijn Taelemans <[email protected]>
  • Loading branch information
lem-onade committed Aug 19, 2024
1 parent 4ff60ee commit 96ad0b7
Show file tree
Hide file tree
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
Expand Up @@ -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 {
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 96ad0b7

Please sign in to comment.