OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / rjeczalik / notify / watcher_test.go
1 // Copyright (c) 2014-2015 The Notify Authors. All rights reserved.
2 // Use of this source code is governed by the MIT license that can be
3 // found in the LICENSE file.
4
5 // +build darwin linux freebsd dragonfly netbsd openbsd windows solaris
6
7 package notify
8
9 import "testing"
10
11 // NOTE Set DEBUG env var for extra debugging info.
12
13 func TestWatcher(t *testing.T) {
14         w := NewWatcherTest(t, "testdata/vfs.txt")
15         defer w.Close()
16
17         cases := [...]WCase{
18                 create(w, "src/github.com/ppknap/link/include/coost/.link.hpp.swp"),
19                 create(w, "src/github.com/rjeczalik/fs/fs_test.go"),
20                 create(w, "src/github.com/rjeczalik/fs/binfs/"),
21                 create(w, "src/github.com/rjeczalik/fs/binfs.go"),
22                 create(w, "src/github.com/rjeczalik/fs/binfs_test.go"),
23                 remove(w, "src/github.com/rjeczalik/fs/binfs/"),
24                 create(w, "src/github.com/rjeczalik/fs/binfs/"),
25                 create(w, "src/github.com/rjeczalik/fs/virfs"),
26                 remove(w, "src/github.com/rjeczalik/fs/virfs"),
27                 create(w, "file"),
28                 create(w, "dir/"),
29         }
30
31         w.ExpectAny(cases[:])
32 }