glider-ssh/ssh_test.go

20 lines
277 B
Go
Raw Normal View History

2016-12-18 08:50:44 +00:00
package ssh
import (
"testing"
"github.com/gliderlabs/ssh"
)
func TestKeysEqual(t *testing.T) {
defer func() {
if r := recover(); r != nil {
t.Errorf("The code did panic")
}
}()
if ssh.KeysEqual(nil, nil) {
t.Error("two nil keys should not return true")
}
}