(t *testing.T)
| 186 | } |
| 187 | |
| 188 | func TestGet_TaskNotFound_ExactMode(t *testing.T) { |
| 189 | tmpDir := createGetTestFiles(t) |
| 190 | resetGetFlags() |
| 191 | taskDir = tmpDir |
| 192 | getExact = true |
| 193 | |
| 194 | err := runGet(getCmd, []string{"nonexistent"}) |
| 195 | if err == nil { |
| 196 | t.Fatal("Expected error for non-matching query in exact mode") |
| 197 | } |
| 198 | if !strings.Contains(err.Error(), "task not found") { |
| 199 | t.Errorf("Expected 'task not found' error, got: %v", err) |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | func TestGet_TaskNotFound_NoMatches(t *testing.T) { |
| 204 | tmpDir := createGetTestFiles(t) |
nothing calls this directly
no test coverage detected