Skip to content

Commit

Permalink
Add test for Julia PURL parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Octogonapus committed May 10, 2024
1 parent a0aeb3f commit c71ca00
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkg/purl/purl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,28 @@ func TestNewPackageURL(t *testing.T) {
},
wantErr: "failed to parse digest",
},
{
name: "julia project",
typ: ftypes.Julia,
pkg: ftypes.Package{
ID: "ade2ca70-3891-5945-98fb-dc099432e06a",
Name: "Dates",
Version: "1.9.0",
},
want: &purl.PackageURL{
PackageURL: packageurl.PackageURL{
Type: packageurl.TypeJulia,
Name: "Dates",
Version: "1.9.0",
Qualifiers: packageurl.Qualifiers{
{
Key: "uuid",
Value: "ade2ca70-3891-5945-98fb-dc099432e06a",
},
},
},
},
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit c71ca00

Please sign in to comment.