@@ -504,7 +504,7 @@ TEST_F(SerializeTest, ExplicitTime) {
504504
505505TEST_F (SerializeTest, GetExpirationErrorHandling) {
506506 char *err_msg = nullptr ;
507-
507+
508508 // Test NULL token handling
509509 long long expiry;
510510 auto rv = scitoken_get_expiration (nullptr , &expiry, &err_msg);
@@ -513,27 +513,28 @@ TEST_F(SerializeTest, GetExpirationErrorHandling) {
513513 EXPECT_STREQ (err_msg, " Token cannot be NULL" );
514514 free (err_msg);
515515 err_msg = nullptr ;
516-
517- // Test NULL expiry parameter handling
516+
517+ // Test NULL expiry parameter handling
518518 rv = scitoken_get_expiration (m_token.get (), nullptr , &err_msg);
519519 ASSERT_FALSE (rv == 0 );
520520 ASSERT_TRUE (err_msg != nullptr );
521521 EXPECT_STREQ (err_msg, " Expiry output parameter cannot be NULL" );
522522 free (err_msg);
523523 err_msg = nullptr ;
524-
524+
525525 // Test normal operation works
526526 char *token_value = nullptr ;
527527 rv = scitoken_serialize (m_token.get (), &token_value, &err_msg);
528528 ASSERT_TRUE (rv == 0 ) << err_msg;
529-
530- rv = scitoken_deserialize_v2 (token_value, m_read_token.get (), nullptr , &err_msg);
529+
530+ rv = scitoken_deserialize_v2 (token_value, m_read_token.get (), nullptr ,
531+ &err_msg);
531532 ASSERT_TRUE (rv == 0 ) << err_msg;
532-
533+
533534 rv = scitoken_get_expiration (m_read_token.get (), &expiry, &err_msg);
534535 ASSERT_TRUE (rv == 0 ) << err_msg;
535536 ASSERT_TRUE (expiry > 0 );
536-
537+
537538 free (token_value);
538539}
539540
@@ -725,7 +726,8 @@ TEST_F(KeycacheTest, SetGetTest) {
725726TEST_F (KeycacheTest, SetGetConfiguredCacheHome) {
726727 // Set cache home
727728 char cache_path[FILENAME_MAX];
728- ASSERT_TRUE (getcwd (cache_path, sizeof (cache_path)) != nullptr ); // Side effect gets cwd
729+ ASSERT_TRUE (getcwd (cache_path, sizeof (cache_path)) !=
730+ nullptr ); // Side effect gets cwd
729731 char *err_msg = nullptr ;
730732 std::string key = " keycache.cache_home" ;
731733
@@ -944,30 +946,31 @@ TEST_F(IssuerSecurityTest, SpecialCharacterIssuer) {
944946// Test for thundering herd prevention with per-issuer locks
945947TEST_F (IssuerSecurityTest, ThunderingHerdPrevention) {
946948 char *err_msg = nullptr ;
947-
949+
948950 // Create tokens for a new issuer and pre-populate the cache
949951 std::string test_issuer = " https://thundering-herd-test.example.org/gtest" ;
950-
952+
951953 auto rv = scitoken_set_claim_string (m_token.get (), " iss" ,
952954 test_issuer.c_str (), &err_msg);
953955 ASSERT_TRUE (rv == 0 ) << err_msg;
954-
956+
955957 // Store public key for this issuer in the cache
956958 rv = scitoken_store_public_ec_key (test_issuer.c_str (), " 1" , ec_public,
957959 &err_msg);
958960 ASSERT_TRUE (rv == 0 ) << err_msg;
959-
961+
960962 char *token_value = nullptr ;
961963 rv = scitoken_serialize (m_token.get (), &token_value, &err_msg);
962964 ASSERT_TRUE (rv == 0 ) << err_msg;
963965 std::unique_ptr<char , decltype (&free)> token_value_ptr (token_value, free);
964-
965- // Successfully deserialize - the per-issuer lock should prevent thundering herd
966- // Since we pre-populated the cache, this should succeed without network access
966+
967+ // Successfully deserialize - the per-issuer lock should prevent thundering
968+ // herd Since we pre-populated the cache, this should succeed without
969+ // network access
967970 rv = scitoken_deserialize_v2 (token_value, m_read_token.get (), nullptr ,
968971 &err_msg);
969972 ASSERT_TRUE (rv == 0 ) << err_msg;
970-
973+
971974 // Verify the issuer claim
972975 char *value;
973976 rv = scitoken_get_claim_string (m_read_token.get (), " iss" , &value, &err_msg);
0 commit comments