(filePath string)
| 1610 | } |
| 1611 | |
| 1612 | func fileURL(filePath string) string { |
| 1613 | urlPath := filepath.ToSlash(filePath) |
| 1614 | if filepath.VolumeName(filePath) != "" { |
| 1615 | urlPath = "/" + urlPath |
| 1616 | } |
| 1617 | return (&url.URL{Scheme: "file", Path: urlPath}).String() |
| 1618 | } |
| 1619 | |
| 1620 | func runGitAt(t *testing.T, dir string, args ...string) string { |
| 1621 | t.Helper() |
no test coverage detected