github.com/dgallion1/notify@v0.9.3-0.20201128171805-931189d936e0/watcher_trigger_test.go (about) 1 // Copyright (c) 2014-2017 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,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd solaris illumos 6 7 package notify 8 9 import "testing" 10 11 func TestWatcherCreateOnly(t *testing.T) { 12 w := NewWatcherTest(t, "testdata/vfs.txt", Create) 13 defer w.Close() 14 15 cases := [...]WCase{ 16 create(w, "dir/"), 17 create(w, "dir2/"), 18 } 19 20 w.ExpectAny(cases[:]) 21 }