(t *testing.T)
| 175 | } |
| 176 | |
| 177 | func TestWatcherStop(t *testing.T) { |
| 178 | tmpDir := t.TempDir() |
| 179 | prdPath := createTestPRDMd(t, tmpDir, []UserStory{ |
| 180 | {ID: "US-001", Title: "Test Story", Passes: false}, |
| 181 | }) |
| 182 | |
| 183 | watcher, err := NewWatcher(prdPath) |
| 184 | if err != nil { |
| 185 | t.Fatalf("Failed to create watcher: %v", err) |
| 186 | } |
| 187 | |
| 188 | if err := watcher.Start(); err != nil { |
| 189 | t.Fatalf("Failed to start watcher: %v", err) |
| 190 | } |
| 191 | |
| 192 | watcher.Stop() |
| 193 | watcher.Stop() // Should be safe |
| 194 | } |
| 195 | |
| 196 | func TestHasStatusChanged(t *testing.T) { |
| 197 | tests := []struct { |
nothing calls this directly
no test coverage detected