-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dart classifier for 2.x and ARM (#3475)
Signed-off-by: witchcraze <[email protected]>
- Loading branch information
1 parent
21df387
commit 2118295
Showing
5 changed files
with
42 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -1067,6 +1067,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) { | |
Metadata: metadata("swipl-binary"), | ||
}, | ||
}, | ||
{ | ||
logicalFixture: "dart/2.12.4/linux-amd64", | ||
expected: pkg.Package{ | ||
Name: "dart", | ||
Version: "2.12.4", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: locations("dart"), | ||
Metadata: metadata("dart-binary"), | ||
}, | ||
}, | ||
{ | ||
logicalFixture: "dart/3.0.0/linux-arm", | ||
expected: pkg.Package{ | ||
Name: "dart", | ||
Version: "3.0.0", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: locations("dart"), | ||
Metadata: metadata("dart-binary"), | ||
}, | ||
}, | ||
{ | ||
logicalFixture: "dart/3.5.2/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/2.12.4/linux-amd64/dart
Binary file not shown.
Binary file added
BIN
+348 Bytes
syft/pkg/cataloger/binary/test-fixtures/classifiers/snippets/dart/3.0.0/linux-arm/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