MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / AppendDependencies

Method AppendDependencies

opensca/model/bomsw.go:119–126  ·  view source on GitHub ↗
(parentId string, childrenIds []string)

Source from the content-addressed store, hash-verified

117}
118
119func (doc *BomSWDocument) AppendDependencies(parentId string, childrenIds []string) {
120 if doc.Software.Dependencies == nil {
121 doc.Software.Dependencies = []swDependencies{}
122 }
123 if len(childrenIds) > 0 {
124 doc.Software.Dependencies = append(doc.Software.Dependencies, newDependencies(parentId, childrenIds))
125 }
126}

Callers 1

bomSWDocFunction · 0.95

Calls 1

newDependenciesFunction · 0.85

Tested by

no test coverage detected