(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func TestGraphWithMissing(t *testing.T) { |
| 107 | planner, err := model.NewWorkflowPlanner("testdata/issue-1595/missing.yml", true, false) |
| 108 | assert.NoError(t, err) |
| 109 | |
| 110 | out := log.StandardLogger().Out |
| 111 | var buf bytes.Buffer |
| 112 | log.SetOutput(&buf) |
| 113 | log.SetLevel(log.DebugLevel) |
| 114 | |
| 115 | plan, err := planner.PlanEvent("push") |
| 116 | assert.NotNil(t, plan) |
| 117 | assert.Equal(t, 0, len(plan.Stages)) |
| 118 | assert.EqualError(t, err, "unable to build dependency graph for missing (missing.yml)") |
| 119 | assert.Contains(t, buf.String(), "unable to build dependency graph for missing (missing.yml)") |
| 120 | log.SetOutput(out) |
| 121 | } |
| 122 | |
| 123 | func TestGraphWithSomeMissing(t *testing.T) { |
| 124 | log.SetLevel(log.DebugLevel) |
nothing calls this directly
no test coverage detected
searching dependent graphs…