MCPcopy Create free account
hub / github.com/driangle/taskmd / TestFormatDuplicatePaths

Function TestFormatDuplicatePaths

apps/cli/internal/cli/duplicate_test.go:145–158  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

143}
144
145func 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
160func TestFormatDuplicatePathsWithTitles(t *testing.T) {
161 tasks := []*model.Task{

Callers

nothing calls this directly

Calls 1

formatDuplicatePathsFunction · 0.85

Tested by

no test coverage detected