INNER CODE UNIT · Go
TestNilPakeOperations
schollz/pake · pake_test.go:78
func TestNilPakeOperations(t *testing.T) {
var p *Pake
// Test HaveSessionKey on nil pake
if p.HaveSessionKey() {
t.Error("HaveSessionKey() should return false for nil pake")
}
// Test Update on nil pake
err := p.Update([]byte("test"))
if err == nil {
t.Error("Update() should return error for nil pake")
}
}
func TestNilPakeSessionKey(t *testing.T) {
var p *Pake