github.com/misseven0/notify@v0.0.0-20230519123055-c1422e46da05/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 //go:build (darwin && kqueue) || (darwin && !cgo) || dragonfly || freebsd || netbsd || openbsd || solaris || illumos 6 // +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd solaris illumos 7 8 package notify 9 10 import "testing" 11 12 func TestWatcherCreateOnly(t *testing.T) { 13 w := NewWatcherTest(t, "testdata/vfs.txt", Create) 14 defer w.Close() 15 16 cases := [...]WCase{ 17 create(w, "dir/"), 18 create(w, "dir2/"), 19 } 20 21 w.ExpectAny(cases[:]) 22 }