MCPcopy
hub / github.com/nektos/act / TestGraphWithSomeMissing

Function TestGraphWithSomeMissing

pkg/runner/runner_test.go:123–141  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func TestGraphWithSomeMissing(t *testing.T) {
124 log.SetLevel(log.DebugLevel)
125
126 planner, err := model.NewWorkflowPlanner("testdata/issue-1595/", true, false)
127 assert.NoError(t, err)
128
129 out := log.StandardLogger().Out
130 var buf bytes.Buffer
131 log.SetOutput(&buf)
132 log.SetLevel(log.DebugLevel)
133
134 plan, err := planner.PlanAll()
135 assert.Error(t, err, "unable to build dependency graph for no first (no-first.yml)")
136 assert.NotNil(t, plan)
137 assert.Equal(t, 1, len(plan.Stages))
138 assert.Contains(t, buf.String(), "unable to build dependency graph for missing (missing.yml)")
139 assert.Contains(t, buf.String(), "unable to build dependency graph for no first (no-first.yml)")
140 log.SetOutput(out)
141}
142
143func TestGraphEvent(t *testing.T) {
144 planner, err := model.NewWorkflowPlanner("testdata/basic", true, false)

Callers

nothing calls this directly

Calls 4

PlanAllMethod · 0.95
NewWorkflowPlannerFunction · 0.92
ErrorMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…