feat: add support for conan packages (C/C++) (#1083)

This commit is contained in:
cpendery
2022-07-05 10:49:24 -04:00
committed by GitHub
parent 6b28a46ebe
commit 57323a1666
19 changed files with 299 additions and 2 deletions
@@ -35,6 +35,8 @@ func SourceInfo(p pkg.Package) string {
answer = "acquired package info from rust cargo manifest"
case pkg.PhpComposerPkg:
answer = "acquired package info from PHP composer manifest"
case pkg.ConanPkg:
answer = "acquired package info from conan manifest"
default:
answer = "acquired package info from the following paths"
}
@@ -150,6 +150,14 @@ func Test_SourceInfo(t *testing.T) {
"from ALPM DB",
},
},
{
input: pkg.Package{
Type: pkg.ConanPkg,
},
expected: []string{
"from conan manifest",
},
},
}
var pkgTypes []pkg.Type
for _, test := range tests {