--- Non-existent directory ---
(t *testing.T)
| 121 | // --- Non-existent directory --- |
| 122 | |
| 123 | func TestEdge_NonExistentDirectory(t *testing.T) { |
| 124 | resetListFlags() |
| 125 | noColor = true |
| 126 | _, err := captureListOutput(t, "/tmp/nonexistent-taskmd-dir-xyz-"+t.Name()) |
| 127 | // Scanner should either error or return empty results |
| 128 | if err != nil { |
| 129 | if !strings.Contains(err.Error(), "scan failed") { |
| 130 | t.Errorf("expected 'scan failed' error, got: %v", err) |
| 131 | } |
| 132 | } |
| 133 | // If no error, that's also acceptable (scanner returns empty) |
| 134 | } |
| 135 | |
| 136 | // --- Invalid sort field --- |
| 137 |
nothing calls this directly
no test coverage detected