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

Function assert

opensca/model/spdx.go:89–94  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

87}
88
89func assert(s string) string {
90 if s != "" {
91 return s
92 }
93 return "NOASSERTION"
94}
95
96const spdxtpl = `SPDXVersion: {{ .SPDXVersion }}
97SPDXID: {{ .SPDXID }}

Callers 1

AddPackageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected