File: driver_windows_test.go

package info (click to toggle)
golang-github-crc-org-crc 2.34.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,548 kB
  • sloc: sh: 398; makefile: 326; javascript: 40
file content (12 lines) | stat: -rwxr-xr-x 271 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
package hyperv

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestConvertToUnixPath(t *testing.T) {
	assert.Equal(t, "/mnt/c/Users/crc", convertToUnixPath("C:\\Users\\crc"))
	assert.Equal(t, "/mnt/d/Users/crc", convertToUnixPath("d:\\Users\\crc"))
}