MCPcopy
hub / github.com/runfinch/finch / NewGroup

Function NewGroup

pkg/dependency/dependency.go:33–39  ·  view source on GitHub ↗

NewGroup views deps as ordered dependencies, and the returned Group will only install them in the order specified here.

(deps []Dependency, desc string, errMsg string)

Source from the content-addressed store, hash-verified

31// NewGroup views deps as ordered dependencies,
32// and the returned Group will only install them in the order specified here.
33func NewGroup(deps []Dependency, desc string, errMsg string) *Group {
34 return &Group{
35 deps: deps,
36 desc: desc,
37 errMsg: errMsg,
38 }
39}
40
41// installOptional sequentially installs all dependencies in a Group, collecting all
42// errors and returning one combined error.

Callers 10

NewDependencyGroupFunction · 0.92
Test_NewDependencyGroupFunction · 0.92
Test_NewDependencyGroupFunction · 0.92
NewDependencyGroupFunction · 0.92
TestInitVMAction_runFunction · 0.92
TestStartVMAction_runFunction · 0.92
TestGroup_instalOptionalFunction · 0.85
TestInstallOptionalDepsFunction · 0.85

Calls

no outgoing calls

Tested by 8

Test_NewDependencyGroupFunction · 0.74
Test_NewDependencyGroupFunction · 0.74
TestInitVMAction_runFunction · 0.74
TestStartVMAction_runFunction · 0.74
TestGroup_instalOptionalFunction · 0.68
TestInstallOptionalDepsFunction · 0.68