(t *testing.T)
| 143 | } |
| 144 | |
| 145 | func TestFormatDuplicatePaths(t *testing.T) { |
| 146 | tasks := []*model.Task{ |
| 147 | {ID: "001", FilePath: "a/001.md"}, |
| 148 | {ID: "001", FilePath: "b/001.md"}, |
| 149 | } |
| 150 | |
| 151 | result := formatDuplicatePaths(tasks) |
| 152 | if !strings.Contains(result, " - a/001.md") { |
| 153 | t.Errorf("expected bulleted path, got: %s", result) |
| 154 | } |
| 155 | if !strings.Contains(result, " - b/001.md") { |
| 156 | t.Errorf("expected bulleted path, got: %s", result) |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | func TestFormatDuplicatePathsWithTitles(t *testing.T) { |
| 161 | tasks := []*model.Task{ |
nothing calls this directly
no test coverage detected