(t *testing.T)
| 547 | } |
| 548 | |
| 549 | func TestShowTaskNoAuxFiles(t *testing.T) { |
| 550 | setupFlowRoot(t) |
| 551 | wd := t.TempDir() |
| 552 | if rc := cmdAdd([]string{"task", "Bar", "--slug", "bar", "--work-dir", wd}); rc != 0 { |
| 553 | t.Fatal() |
| 554 | } |
| 555 | out := captureShowStdout(t, func() { |
| 556 | if rc := cmdShow([]string{"task", "bar"}); rc != 0 { |
| 557 | t.Fatal() |
| 558 | } |
| 559 | }) |
| 560 | if !strings.Contains(out, "other:") { |
| 561 | t.Errorf("expected 'other:' section even when empty, got:\n%s", out) |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | func TestShowProjectListsAuxFiles(t *testing.T) { |
| 566 | root := setupFlowRoot(t) |
nothing calls this directly
no test coverage detected