This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/db/key_test.go

13 lines
205 B
Go
Raw Normal View History

2015-08-18 05:57:27 +05:30
package db
import (
"testing"
)
func TestNewPrivateKeySetRepoInvalidKey(t *testing.T) {
_, err := NewPrivateKeySetRepo(nil, []byte("sharks"))
2015-08-18 05:57:27 +05:30
if err == nil {
t.Fatalf("Expected non-nil error")
}
}