mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
feat: implement haskell support (#1096)
This commit is contained in:
@@ -58,6 +58,10 @@ func TestLanguageFromPURL(t *testing.T) {
|
||||
purl: "pkg:conan/catch2@2.13.8",
|
||||
want: CPP,
|
||||
},
|
||||
{
|
||||
purl: "pkg:hackage/HTTP@4000.3.16",
|
||||
want: Haskell,
|
||||
},
|
||||
}
|
||||
|
||||
var languages []string
|
||||
@@ -211,6 +215,14 @@ func TestLanguageByName(t *testing.T) {
|
||||
name: "c++",
|
||||
language: CPP,
|
||||
},
|
||||
{
|
||||
name: "hackage",
|
||||
language: Haskell,
|
||||
},
|
||||
{
|
||||
name: "haskell",
|
||||
language: Haskell,
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user