(t *testing.T)
| 294 | } |
| 295 | |
| 296 | func TestWriteBrokenLink(t *testing.T) { |
| 297 | if runtime.GOOS == "windows" { |
| 298 | t.Skip("no user-space symlinks on windows") |
| 299 | } |
| 300 | f := newNotifyFixture(t) |
| 301 | |
| 302 | link := filepath.Join(f.paths[0], "brokenLink") |
| 303 | missingFile := filepath.Join(f.paths[0], "missingFile") |
| 304 | err := os.Symlink(missingFile, link) |
| 305 | if err != nil { |
| 306 | t.Fatal(err) |
| 307 | } |
| 308 | |
| 309 | f.assertEvents(link) |
| 310 | } |
| 311 | |
| 312 | func TestWriteGoodLink(t *testing.T) { |
| 313 | if runtime.GOOS == "windows" { |
nothing calls this directly
no test coverage detected