(t *testing.T)
| 260 | } |
| 261 | |
| 262 | func TestReject(t *testing.T) { |
| 263 | plan := NewExecutionPlan("Test plan") |
| 264 | rejectionNote := "Not suitable for execution" |
| 265 | |
| 266 | plan.Reject(rejectionNote) |
| 267 | |
| 268 | if plan.UserApproved { |
| 269 | t.Error("expected UserApproved to be false") |
| 270 | } |
| 271 | |
| 272 | if plan.RejectionNote != rejectionNote { |
| 273 | t.Errorf("expected RejectionNote %q, got %q", rejectionNote, plan.RejectionNote) |
| 274 | } |
| 275 | |
| 276 | if plan.Status != StatusCancelled { |
| 277 | t.Errorf("expected status %v, got %v", StatusCancelled, plan.Status) |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | func TestMarkStepStarted(t *testing.T) { |
| 282 | plan := NewExecutionPlan("Test plan") |
nothing calls this directly
no test coverage detected