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

Function ParseCdxXml

opensca/sca/sbom/cdx.go:20–26  ·  view source on GitHub ↗
(f *model.File)

Source from the content-addressed store, hash-verified

18}
19
20func ParseCdxXml(f *model.File) *model.DepGraph {
21 bom := &cyclonedx.BOM{}
22 f.OpenReader(func(reader io.Reader) {
23 xml.NewDecoder(reader).Decode(&bom)
24 })
25 return parseCdxBom(f, bom)
26}
27
28func parseCdxBom(f *model.File, bom *cyclonedx.BOM) *model.DepGraph {
29

Callers 1

ScaMethod · 0.85

Calls 3

parseCdxBomFunction · 0.85
OpenReaderMethod · 0.80
DecodeMethod · 0.80

Tested by

no test coverage detected