MCPcopy Index your code
hub / github.com/php/frankenphp / TestInvalidRecursiveDirectories

Function TestInvalidRecursiveDirectories

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

Source from the content-addressed store, hash-verified

110}
111
112func TestInvalidRecursiveDirectories(t *testing.T) {
113 t.Parallel()
114
115 data := []struct {
116 pattern string
117 dir string
118 }{
119 {"/path", "/other/file.php"},
120 {"/path/**", "/other/file.php"},
121 {".", "/other/file.php"},
122 }
123
124 for _, d := range data {
125 t.Run(d.pattern, func(t *testing.T) {
126 t.Parallel()
127
128 assertPatternNotMatch(t, d.pattern, d.dir)
129 })
130 }
131}
132
133func TestValidNonRecursiveFilePatterns(t *testing.T) {
134 t.Parallel()

Callers

nothing calls this directly

Calls 1

assertPatternNotMatchFunction · 0.85

Tested by

no test coverage detected