mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
Support detection of Chrome binaries (#3136)
* test: add test cases Signed-off-by: Stijn Taelemans <taelemansst@gmail.com> * feat: add classifier for chrome Signed-off-by: Stijn Taelemans <taelemansst@gmail.com> --------- Signed-off-by: Stijn Taelemans <taelemansst@gmail.com>
This commit is contained in:
@@ -1342,6 +1342,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
||||
Metadata: metadata("jq-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "chrome/126.0.6478.182/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "chrome",
|
||||
Version: "126.0.6478.182",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/chrome@126.0.6478.182",
|
||||
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/chrome@127.0.6533.119",
|
||||
Locations: locations("chrome"),
|
||||
Metadata: metadata("chrome-binary"),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user