github.com/mitchellh/packer@v1.3.2/common/shell-local/config_test.go (about)

     1  package shell_local
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestConvertToLinuxPath(t *testing.T) {
    10  	winPath := "C:/path/to/your/file"
    11  	winBashPath := "/mnt/c/path/to/your/file"
    12  	converted, _ := ConvertToLinuxPath(winPath)
    13  	assert.Equal(t, winBashPath, converted,
    14  		"Should have converted %s to %s -- not %s", winPath, winBashPath, converted)
    15  
    16  }