ssh_test.go 243 B

1234567891011121314151617
  1. package ssh
  2. import (
  3. "testing"
  4. )
  5. func TestKeysEqual(t *testing.T) {
  6. defer func() {
  7. if r := recover(); r != nil {
  8. t.Errorf("The code did panic")
  9. }
  10. }()
  11. if KeysEqual(nil, nil) {
  12. t.Error("two nil keys should not return true")
  13. }
  14. }