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

Function TestGraphMissingEvent

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

Source from the content-addressed store, hash-verified

76}
77
78func TestGraphMissingEvent(t *testing.T) {
79 planner, err := model.NewWorkflowPlanner("testdata/issue-1595/no-event.yml", true, false)
80 assert.NoError(t, err)
81
82 out := log.StandardLogger().Out
83 var buf bytes.Buffer
84 log.SetOutput(&buf)
85 log.SetLevel(log.DebugLevel)
86
87 plan, err := planner.PlanEvent("push")
88 assert.NoError(t, err)
89 assert.NotNil(t, plan)
90 assert.Equal(t, 0, len(plan.Stages))
91
92 assert.Contains(t, buf.String(), "no events found for workflow: no-event.yml")
93 log.SetOutput(out)
94}
95
96func TestGraphMissingFirst(t *testing.T) {
97 planner, err := model.NewWorkflowPlanner("testdata/issue-1595/no-first.yml", true, false)

Callers

nothing calls this directly

Calls 3

PlanEventMethod · 0.95
NewWorkflowPlannerFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…