Add an extra test to verify SSHinfoIsEmpty does not panic

This commit is contained in:
Dan Sosedoff
2017-10-03 23:03:02 -05:00
parent 58ae69de0b
commit 277e2d6cd8

View File

@@ -106,7 +106,10 @@ func Test_Bookmark_SSHInfoIsEmpty(t *testing.T) {
User: "postgres",
}
b := Bookmark{Ssh: emptySSH}
b := Bookmark{Ssh: nil}
assert.True(t, b.SSHInfoIsEmpty())
b = Bookmark{Ssh: emptySSH}
assert.True(t, b.SSHInfoIsEmpty())
b.Ssh = populatedSSH