github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/ssh/ssh_test.go (about)

     1  package ssh
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func 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  
    15  func 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  }