Port function to get ssh cli options by running ssh binary

This commit is contained in:
Kovid Goyal
2023-02-19 22:13:42 +05:30
parent 407555c6c8
commit 57839b4e03
2 changed files with 99 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// License: GPLv3 Copyright: 2023, Kovid Goyal, <kovid at kovidgoyal.net>
package ssh
import (
"fmt"
"testing"
)
var _ = fmt.Print
func TestGetSSHOptions(t *testing.T) {
m := SSHOptions()
if m["w"] != "local_tun[:remote_tun]" {
t.Fatalf("Unexpected set of SSH options: %#v", m)
}
}