-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: classifier for Dart lang binaries (#3265)
Signed-off-by: Laurent Goderre <[email protected]>
- Loading branch information
1 parent
963ea59
commit 7815d8e
Showing
5 changed files
with
46 additions
and
0 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 |
---|---|---|
|
@@ -961,6 +961,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) { | |
Metadata: metadata("swipl-binary"), | ||
}, | ||
}, | ||
{ | ||
logicalFixture: "dart/3.5.2/linux-amd64", | ||
expected: pkg.Package{ | ||
Name: "dart", | ||
Version: "3.5.2", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: locations("dart"), | ||
Metadata: metadata("dart-binary"), | ||
}, | ||
}, | ||
{ | ||
logicalFixture: "dart/3.6.0-216.1.beta/linux-amd64", | ||
expected: pkg.Package{ | ||
Name: "dart", | ||
Version: "3.6.0-216.1.beta", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: locations("dart"), | ||
Metadata: metadata("dart-binary"), | ||
}, | ||
}, | ||
{ | ||
logicalFixture: "haskell-ghc/9.6.5/linux-amd64", | ||
expected: pkg.Package{ | ||
|
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
Binary file added
BIN
+348 Bytes
syft/pkg/cataloger/binary/test-fixtures/classifiers/snippets/dart/3.5.2/linux-amd64/dart
Binary file not shown.
Binary file added
BIN
+348 Bytes
...ataloger/binary/test-fixtures/classifiers/snippets/dart/3.6.0-216.1.beta/linux-amd64/dart
Binary file not shown.
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