(t *testing.T)
| 121 | } |
| 122 | |
| 123 | func 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 | |
| 143 | func TestGraphEvent(t *testing.T) { |
| 144 | planner, err := model.NewWorkflowPlanner("testdata/basic", true, false) |
nothing calls this directly
no test coverage detected
searching dependent graphs…