github.com/swaros/contxt/module/taskrun@v0.0.0-20240305083542-3dbd4436ac40/shellinstall_test.go (about) 1 package taskrun_test 2 3 import ( 4 "testing" 5 6 "github.com/swaros/contxt/module/configure" 7 "github.com/swaros/contxt/module/taskrun" 8 ) 9 10 func TestFindPwrShellModule(t *testing.T) { 11 if configure.GetOs() != "windows" { 12 t.Skip("skipping test in non windows os") 13 } 14 found, _ := taskrun.FindPwrShellProfile() 15 if !found { 16 t.Errorf("powershell module not found") 17 } 18 }