test/src/crypto/crypto_store/crypto_store_test.cpp
TEST_F(CryptoStoreTest, generateEd25519KeypairStoreSuccess) {
  EXPECT_OUTCOME_TRUE(pair, crypto_store->generateEd25519Keypair(key_type));

  // check that created pair is contained in the storage on disk
  EXPECT_OUTCOME_TRUE(
      found, crypto_store->findEd25519Keypair(key_type, pair.public_key));
  ASSERT_EQ(found, pair);

  // stored on disk
  ASSERT_TRUE(isStoredOnDisk(key_type, pair.public_key));
}
/**
 * @given cryptostore instance, and key type
 * @when call generateEd25519Keypair(key_type)
 * @then a new ed25519 key pair is generated and stored on disk
 */
@given cryptostore instance, and key type
@when call generateEd25519Keypair(key_type)
@then a new ed25519 key pair is generated and stored on disk
@given cryptostore instance and key type @when call generateEd25519Keypair ( key_type ) @then a new ed25519 key pair is generated and stored on disk
TEST_F(CryptoStoreTest, generateEd25519KeypairStoreSuccess) {
  EXPECT_OUTCOME_TRUE(pair, crypto_store->generateEd25519Keypair(key_type));
  EXPECT_OUTCOME_TRUE(
      found, crypto_store->findEd25519Keypair(key_type, pair.public_key));
  ASSERT_EQ(found, pair);
  ASSERT_TRUE(isStoredOnDisk(key_type, pair.public_key));
}
TEST_F ( CryptoStoreTest , generateEd25519KeypairStoreSuccess ) { EXPECT_OUTCOME_TRUE ( pair , crypto_store -> generateEd25519Keypair ( key_type ) ) ; EXPECT_OUTCOME_TRUE ( found , crypto_store -> findEd25519Keypair ( key_type , pair . public_key ) ) ; ASSERT_EQ ( found , pair ) ; ASSERT_TRUE ( isStoredOnDisk ( key_type , pair . public_key ) ) ; }
@given cryptostore instance, and key type
 @when call generateEd25519Keypair(key_type)
 @then a new ed25519 key pair is generated and stored on disk
@given cryptostore instance and key type @when call generateEd25519Keypair ( key_type ) @then a new ed25519 key pair is generated and stored on disk
// check that created pair is contained in the storage on disk // stored on disk