(t *testing.T)
| 459 | } |
| 460 | |
| 461 | func TestStepStatusForError(t *testing.T) { |
| 462 | t.Parallel() |
| 463 | |
| 464 | t.Run("Canceled", func(t *testing.T) { |
| 465 | t.Parallel() |
| 466 | require.Equal(t, StatusInterrupted, stepStatusForError(context.Canceled)) |
| 467 | }) |
| 468 | |
| 469 | t.Run("DeadlineExceeded", func(t *testing.T) { |
| 470 | t.Parallel() |
| 471 | require.Equal(t, StatusInterrupted, stepStatusForError(context.DeadlineExceeded)) |
| 472 | }) |
| 473 | |
| 474 | t.Run("OtherError", func(t *testing.T) { |
| 475 | t.Parallel() |
| 476 | require.Equal(t, StatusError, stepStatusForError(xerrors.New("boom"))) |
| 477 | }) |
| 478 | } |
| 479 | |
| 480 | func TestDebugModel_Stream(t *testing.T) { |
| 481 | t.Parallel() |
nothing calls this directly
no test coverage detected