(t *testing.T)
| 149 | } |
| 150 | |
| 151 | func TestCmdShowTaskFloating(t *testing.T) { |
| 152 | root, db := showListEditDB(t) |
| 153 | insertTask(t, db, "readme-pass", "Read", "backlog", "low", filepath.Join(root, "tasks", "readme-pass", "workspace"), nil) |
| 154 | out := captureStdout(t, func() { |
| 155 | if rc := cmdShow([]string{"task", "readme-pass"}); rc != 0 { |
| 156 | t.Errorf("rc=%d", rc) |
| 157 | } |
| 158 | }) |
| 159 | if !strings.Contains(out, "project: (floating)") { |
| 160 | t.Errorf("expected floating marker; out=%q", out) |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | func TestCmdShowTaskDefaultsFromEnv(t *testing.T) { |
| 165 | root, db := showListEditDB(t) |
nothing calls this directly
no test coverage detected