mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +01:00
Follow convention for naming catalogers (#2277)
* follow convention for naming catalogers Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix cataloger name example Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -18,7 +18,7 @@ func TestSbomCataloger(t *testing.T) {
|
||||
actualSbomPkgs := 0
|
||||
actualGoModPkgs := 0
|
||||
for pkg := range sbom.Artifacts.Packages.Enumerate(pkg.GoModulePkg) {
|
||||
if pkg.FoundBy == "go-mod-file-cataloger" {
|
||||
if pkg.FoundBy == "go-module-file-cataloger" {
|
||||
actualGoModPkgs += 1
|
||||
} else if pkg.FoundBy == "sbom-cataloger" {
|
||||
actualSbomPkgs += 1
|
||||
|
||||
Reference in New Issue
Block a user