Add an extra test to verify SSHinfoIsEmpty does not panic
This commit is contained in:
@@ -106,7 +106,10 @@ func Test_Bookmark_SSHInfoIsEmpty(t *testing.T) {
|
|||||||
User: "postgres",
|
User: "postgres",
|
||||||
}
|
}
|
||||||
|
|
||||||
b := Bookmark{Ssh: emptySSH}
|
b := Bookmark{Ssh: nil}
|
||||||
|
assert.True(t, b.SSHInfoIsEmpty())
|
||||||
|
|
||||||
|
b = Bookmark{Ssh: emptySSH}
|
||||||
assert.True(t, b.SSHInfoIsEmpty())
|
assert.True(t, b.SSHInfoIsEmpty())
|
||||||
|
|
||||||
b.Ssh = populatedSSH
|
b.Ssh = populatedSSH
|
||||||
|
|||||||
Reference in New Issue
Block a user