(t *testing.T, tasksDir string)
| 611 | } |
| 612 | |
| 613 | func 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 | |
| 621 | Started implementation of the search feature. |
| 622 | |
| 623 | **Approach:** Full-text search with SQLite. |
| 624 | |
| 625 | ## 2026-02-15T14:30:00Z |
| 626 | |
| 627 | Completed 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 | |
| 634 | func TestScanWorklogEntries(t *testing.T) { |
| 635 | tmpDir := t.TempDir() |
no outgoing calls
no test coverage detected