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

Function Diff

test/tool/tool.go:13–22  ·  view source on GitHub ↗
(a, b *model.DepGraph)

Source from the content-addressed store, hash-verified

11)
12
13func Diff(a, b *model.DepGraph) bool {
14 clear := func(p, n *model.DepGraph) bool {
15 n.Path = ""
16 n.Language = model.Lan_None
17 return true
18 }
19 a.ForEachNode(clear)
20 b.ForEachNode(clear)
21 return a.Tree(false, true) != b.Tree(false, true)
22}
23
24func Dep3(vendor, name, version string, children ...*model.DepGraph) *model.DepGraph {
25 root := &model.DepGraph{

Callers 1

RunTaskCaseFunction · 0.85

Calls 2

ForEachNodeMethod · 0.80
TreeMethod · 0.80

Tested by

no test coverage detected