MCPcopy Create free account
hub / github.com/php/frankenphp / TestDisallowOnPathTypeBiggerThan2

Function TestDisallowOnPathTypeBiggerThan2

internal/watcher/pattern_test.go:47–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestDisallowOnPathTypeBiggerThan2(t *testing.T) {
48 t.Parallel()
49
50 w := newPattern(t, "/some/path")
51
52 assert.False(t, w.allowReload(&watcher.Event{PathName: "/some/path/watch-me.php", PathType: watcher.PathTypeSymLink}))
53}
54
55func TestWatchesCorrectDir(t *testing.T) {
56 t.Parallel()

Callers

nothing calls this directly

Calls 2

newPatternFunction · 0.85
allowReloadMethod · 0.80

Tested by

no test coverage detected