We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d151586 commit 6a43c91Copy full SHA for 6a43c91
1 file changed
test/providers/golang_gomodules.test.js
@@ -61,7 +61,8 @@ suite('testing the golang-go-modules data provider', () => {
61
test('verify go_mod_no_ignore component analysis includes all root-level deps from go mod graph', async () => {
62
let providedData = await golangGoModules.provideComponent('test/providers/tst_manifests/golang/go_mod_no_ignore/go.mod')
63
let sbom = JSON.parse(providedData.content)
64
- let rootDeps = sbom.dependencies.find(d => d.dependsOn && d.dependsOn.length > 0)
+ let rootRef = sbom.metadata.component.purl
65
+ let rootDeps = sbom.dependencies.find(d => d.ref === rootRef)
66
expect(rootDeps.dependsOn).to.have.lengthOf(45,
67
'Component analysis should include all root-level edges from go mod graph as direct deps. ' +
68
'A lower count indicates the directDepPaths filtering is incorrectly excluding indirect require entries.')
0 commit comments