(t *testing.T, path string)
| 13 | ) |
| 14 | |
| 15 | func 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 | |
| 30 | func newPattern(t *testing.T, value string) pattern { |
| 31 | t.Helper() |
no outgoing calls
no test coverage detected