(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestKeyring_GetPrimaryKey(t *testing.T) { |
| 44 | keyring, err := NewKeyring(TestKeys, TestKeys[1]) |
| 45 | if err != nil { |
| 46 | t.Fatalf("err: %s", err) |
| 47 | } |
| 48 | |
| 49 | // GetPrimaryKey returns correct key |
| 50 | primaryKey := keyring.GetPrimaryKey() |
| 51 | if !bytes.Equal(primaryKey, TestKeys[1]) { |
| 52 | t.Fatalf("Unexpected primary key: %v", primaryKey) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func TestKeyring_AddRemoveUse(t *testing.T) { |
| 57 | keyring, err := NewKeyring(nil, TestKeys[1]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…