src/tests/load-pgp.cpp
TEST_F(rnp_tests, test_load_keyring_and_count_pgp)
{
    unsigned int primary_count = 2;
    unsigned int subkey_counts[2] = {3, 2};

    // check pubring
    check_pgp_keyring_counts("data/keyrings/1/pubring.gpg", primary_count, subkey_counts);

    // check secring
    check_pgp_keyring_counts("data/keyrings/1/secring.gpg", primary_count, subkey_counts);
}
/* This test loads a pubring.gpg and secring.gpg and confirms
 * that it contains the expected number of primary keys
 * and the expected number of subkeys for each primary key.
 */
This test loads a pubring.gpg and secring.gpg and confirms
that it contains the expected number of primary keys
and the expected number of subkeys for each primary key.
This test loads a pubring . gpg and secring . gpg and confirms that it contains the expected number of primary keys and the expected number of subkeys for each primary key .
TEST_F(rnp_tests, test_load_keyring_and_count_pgp)
{
    unsigned int primary_count = 2;
    unsigned int subkey_counts[2] = {3, 2};
    check_pgp_keyring_counts("data/keyrings/1/pubring.gpg", primary_count, subkey_counts);
    check_pgp_keyring_counts("data/keyrings/1/secring.gpg", primary_count, subkey_counts);
}
TEST_F ( rnp_tests , test_load_keyring_and_count_pgp ) { unsigned int primary_count = 2 ; unsigned int subkey_counts [ 2 ] = { 3 , 2 } ; check_pgp_keyring_counts ( " " , primary_count , subkey_counts ) ; check_pgp_keyring_counts ( " " , primary_count , subkey_counts ) ; }
This test loads a pubring.gpg and secring.gpg and confirms
 that it contains the expected number of primary keys
 and the expected number of subkeys for each primary key.
This test loads a pubring . gpg and secring . gpg and confirms that it contains the expected number of primary keys and the expected number of subkeys for each primary key .
// check pubring // check secring