github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/internal/runners/deploy/deploy_win_test.go (about) 1 // +build windows 2 3 package deploy 4 5 import ( 6 "path/filepath" 7 "testing" 8 ) 9 10 func Test_symlinkName(t *testing.T) { 11 name := symlinkTargetPath(filepath.FromSlash("/d/e/"), filepath.FromSlash("/a/test.exe.exe")) 12 expected := filepath.FromSlash("/d/e/test.exe.lnk") 13 if name != expected { 14 t.Errorf("expected = %s, got %s", expected, name) 15 } 16 }