(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestCmdShowTaskUnknown(t *testing.T) { |
| 203 | _, _ = showListEditDB(t) |
| 204 | out := captureStdout(t, func() { |
| 205 | if rc := cmdShow([]string{"task", "nope"}); rc != 1 { |
| 206 | t.Errorf("rc=%d, want 1", rc) |
| 207 | } |
| 208 | }) |
| 209 | if !strings.Contains(out, "no task matching") { |
| 210 | t.Errorf("missing error; out=%q", out) |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | func TestCmdShowTaskNoSubstringMatch(t *testing.T) { |
| 215 | root, db := showListEditDB(t) |
nothing calls this directly
no test coverage detected