buildx/util/gitutil/path_windows_test.go
CrazyMax ac5b3241b1
gitutil: sanitize root dir on WSL
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2023-12-19 09:27:32 +01:00

12 lines
197 B
Go

package gitutil
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestSanitizePathWindows(t *testing.T) {
assert.Equal(t, "C:\\Users\\foobar", sanitizePath("C:/Users/foobar"))
}