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

Function createWorklogFiles

apps/cli/internal/cli/feed_test.go:613–632  ·  view source on GitHub ↗
(t *testing.T, tasksDir string)

Source from the content-addressed store, hash-verified

611}
612
613func createWorklogFiles(t *testing.T, tasksDir string) {
614 t.Helper()
615 wlDir := tasksDir + "/cli/.worklogs"
616 if err := os.MkdirAll(wlDir, 0755); err != nil {
617 t.Fatalf("failed to create worklogs dir: %v", err)
618 }
619 content := `## 2026-02-15T10:00:00Z
620
621Started implementation of the search feature.
622
623**Approach:** Full-text search with SQLite.
624
625## 2026-02-15T14:30:00Z
626
627Completed login endpoint.
628`
629 if err := os.WriteFile(wlDir+"/015.md", []byte(content), 0644); err != nil {
630 t.Fatalf("failed to write worklog file: %v", err)
631 }
632}
633
634func TestScanWorklogEntries(t *testing.T) {
635 tmpDir := t.TempDir()

Calls

no outgoing calls

Tested by

no test coverage detected