(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestGet_TaskNotFound_NoMatches(t *testing.T) { |
| 204 | tmpDir := createGetTestFiles(t) |
| 205 | resetGetFlags() |
| 206 | taskDir = tmpDir |
| 207 | getThreshold = 0.99 // very high threshold so nothing matches |
| 208 | |
| 209 | err := runGet(getCmd, []string{"zzzzzzzzzzzzzzz"}) |
| 210 | if err == nil { |
| 211 | t.Fatal("Expected error for garbage query") |
| 212 | } |
| 213 | if !strings.Contains(err.Error(), "task not found") { |
| 214 | t.Errorf("Expected 'task not found' error, got: %v", err) |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | func TestGet_TextFormat(t *testing.T) { |
| 219 | tmpDir := createGetTestFiles(t) |
nothing calls this directly
no test coverage detected