(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestNewWatcher(t *testing.T) { |
| 36 | tmpDir := t.TempDir() |
| 37 | prdPath := createTestPRDMd(t, tmpDir, []UserStory{ |
| 38 | {ID: "US-001", Title: "Test Story", Passes: false}, |
| 39 | }) |
| 40 | |
| 41 | watcher, err := NewWatcher(prdPath) |
| 42 | if err != nil { |
| 43 | t.Fatalf("Failed to create watcher: %v", err) |
| 44 | } |
| 45 | defer watcher.Stop() |
| 46 | |
| 47 | if watcher.path != prdPath { |
| 48 | t.Errorf("Expected path %s, got %s", prdPath, watcher.path) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func TestWatcherStart(t *testing.T) { |
| 53 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected