(t *testing.T)
| 197 | } |
| 198 | |
| 199 | func TestWatchNonExistentPath(t *testing.T) { |
| 200 | f := newNotifyFixture(t) |
| 201 | |
| 202 | root := f.TempDir("root") |
| 203 | path := filepath.Join(root, "change") |
| 204 | |
| 205 | f.watch(path) |
| 206 | f.fsync() |
| 207 | |
| 208 | d1 := "hello\ngo\n" |
| 209 | f.WriteFile(path, d1) |
| 210 | f.assertEvents(path) |
| 211 | } |
| 212 | |
| 213 | func TestWatchNonExistentPathDoesNotFireSiblingEvent(t *testing.T) { |
| 214 | f := newNotifyFixture(t) |
nothing calls this directly
no test coverage detected