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

Function newPattern

internal/watcher/pattern_test.go:30–37  ·  view source on GitHub ↗
(t *testing.T, value string)

Source from the content-addressed store, hash-verified

28}
29
30func newPattern(t *testing.T, value string) pattern {
31 t.Helper()
32
33 p := pattern{value: normalizePath(t, value)}
34 require.NoError(t, p.parse())
35
36 return p
37}
38
39func TestDisallowOnEventTypeBiggerThan3(t *testing.T) {
40 t.Parallel()

Callers 6

hasDirFunction · 0.85
assertPatternMatchFunction · 0.85
assertPatternNotMatchFunction · 0.85

Calls 2

parseMethod · 0.95
normalizePathFunction · 0.85

Tested by

no test coverage detected