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

Function normalizePath

internal/watcher/pattern_test.go:15–28  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

13)
14
15func normalizePath(t *testing.T, path string) string {
16 t.Helper()
17
18 if filepath.Separator == '/' {
19 return path
20 }
21
22 path = filepath.FromSlash(path)
23 if strings.HasPrefix(path, "\\") {
24 path = "C:\\" + path[1:]
25 }
26
27 return path
28}
29
30func newPattern(t *testing.T, value string) pattern {
31 t.Helper()

Callers 5

newPatternFunction · 0.85
hasDirFunction · 0.85
assertPatternMatchFunction · 0.85
assertPatternNotMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected