Increase coverage of GetNoteDecryptor()
This commit is contained in:
parent
5abaca1af6
commit
73db0c12b9
|
@ -34,8 +34,10 @@ TEST(keystore_tests, store_and_retrieve_note_decryptor) {
|
||||||
|
|
||||||
auto sk = libzcash::SpendingKey::random();
|
auto sk = libzcash::SpendingKey::random();
|
||||||
auto addr = sk.address();
|
auto addr = sk.address();
|
||||||
keyStore.AddSpendingKey(sk);
|
|
||||||
|
|
||||||
keyStore.GetNoteDecryptor(addr, decOut);
|
EXPECT_FALSE(keyStore.GetNoteDecryptor(addr, decOut));
|
||||||
|
|
||||||
|
keyStore.AddSpendingKey(sk);
|
||||||
|
EXPECT_TRUE(keyStore.GetNoteDecryptor(addr, decOut));
|
||||||
EXPECT_EQ(ZCNoteDecryption(sk.viewing_key()), decOut);
|
EXPECT_EQ(ZCNoteDecryption(sk.viewing_key()), decOut);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue