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

Function assertPatternMatch

internal/watcher/pattern_test.go:375–381  ·  view source on GitHub ↗
(t *testing.T, p, fileName string)

Source from the content-addressed store, hash-verified

373}
374
375func assertPatternMatch(t *testing.T, p, fileName string) {
376 t.Helper()
377
378 w := newPattern(t, p)
379
380 assert.True(t, w.allowReload(&watcher.Event{PathName: normalizePath(t, fileName)}))
381}
382
383func assertPatternNotMatch(t *testing.T, p, fileName string) {
384 t.Helper()

Calls 3

newPatternFunction · 0.85
normalizePathFunction · 0.85
allowReloadMethod · 0.80

Tested by

no test coverage detected