Lines Matching refs:lg
115 func newTestNode(lg *LicenseGraph, targetName string) *TargetNode {
116 if tn, alreadyExists := lg.targets[targetName]; alreadyExists {
120 lg.targets[targetName] = tn
240 func logGraph(lg *LicenseGraph, t *testing.T) {
243 for _, target := range lg.Targets() {
248 for _, edge := range lg.Edges() {
291 func toActionSet(lg *LicenseGraph, data []act) ActionSet {
294 actsOn := newTestNode(lg, a.actsOn)
307 func toResolutionSet(lg *LicenseGraph, data []res) ResolutionSet {
310 attachesTo := newTestNode(lg, r.attachesTo)
311 actsOn := newTestNode(lg, r.actsOn)
372 func asActionList(lg *LicenseGraph) actionList {
373 result := make(actionList, 0, len(lg.targets))
374 for _, target := range lg.targets {
386 func toActionList(lg *LicenseGraph, actions []tcond) actionList {
389 target := newTestNode(lg, actn.target)
411 func toConflictList(lg *LicenseGraph, data []confl) []SourceSharePrivacyConflict {
419 newTestNode(lg, c.sourceNode),
428 func checkSameActions(lg *LicenseGraph, asActual, asExpected ActionSet, t *testing.T) {
431 testNode := newTestNode(lg, "test")
492 func checkResolvesActions(lg *LicenseGraph, asActual, asExpected ActionSet, t *testing.T) {
495 testNode := newTestNode(lg, "test")