1package ssh 2 3import ( 4 "testing" 5) 6 7func TestSCPCommand(t *testing.T) { 8 if commandName, err := scpCommandPath(); err != nil { 9 t.Fatal("unable to locate SCP command:", err) 10 } else if commandName == "" { 11 t.Error("SCP command path is empty") 12 } 13} 14 15func TestSSHCommand(t *testing.T) { 16 if commandName, err := sshCommandPath(); err != nil { 17 t.Fatal("unable to locate SSH command:", err) 18 } else if commandName == "" { 19 t.Error("SSH command path is empty") 20 } 21} 22