Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
89
func
assert(s string) string {
90
if
s !=
""
{
91
return
s
92
}
93
return
"NOASSERTION"
94
}
95
96
const
spdxtpl = `SPDXVersion: {{ .SPDXVersion }}
97
SPDXID: {{ .SPDXID }}
Callers
1
AddPackage
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected