mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 02:21:58 +00:00
18 lines
243 B
Go
18 lines
243 B
Go
|
|
package ssh
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestKeysEqual(t *testing.T) {
|
||
|
|
defer func() {
|
||
|
|
if r := recover(); r != nil {
|
||
|
|
t.Errorf("The code did panic")
|
||
|
|
}
|
||
|
|
}()
|
||
|
|
|
||
|
|
if KeysEqual(nil, nil) {
|
||
|
|
t.Error("two nil keys should not return true")
|
||
|
|
}
|
||
|
|
}
|