(t *testing.T)
| 226 | } |
| 227 | |
| 228 | func TestRemove(t *testing.T) { |
| 229 | f := newNotifyFixture(t) |
| 230 | |
| 231 | root := f.TempDir("root") |
| 232 | path := filepath.Join(root, "change") |
| 233 | |
| 234 | d1 := "hello\ngo\n" |
| 235 | f.WriteFile(path, d1) |
| 236 | |
| 237 | f.watch(path) |
| 238 | f.fsync() |
| 239 | f.events = nil |
| 240 | err := os.Remove(path) |
| 241 | if err != nil { |
| 242 | t.Fatal(err) |
| 243 | } |
| 244 | f.assertEvents(path) |
| 245 | } |
| 246 | |
| 247 | func TestRemoveAndAddBack(t *testing.T) { |
| 248 | f := newNotifyFixture(t) |
nothing calls this directly
no test coverage detected