(t *testing.T)
| 211 | } |
| 212 | |
| 213 | func TestWatchNonExistentPathDoesNotFireSiblingEvent(t *testing.T) { |
| 214 | f := newNotifyFixture(t) |
| 215 | |
| 216 | root := f.TempDir("root") |
| 217 | watchedFile := filepath.Join(root, "a.txt") |
| 218 | unwatchedSibling := filepath.Join(root, "b.txt") |
| 219 | |
| 220 | f.watch(watchedFile) |
| 221 | f.fsync() |
| 222 | |
| 223 | d1 := "hello\ngo\n" |
| 224 | f.WriteFile(unwatchedSibling, d1) |
| 225 | f.assertEvents() |
| 226 | } |
| 227 | |
| 228 | func TestRemove(t *testing.T) { |
| 229 | f := newNotifyFixture(t) |
nothing calls this directly
no test coverage detected