MCPcopy Create free account
hub / github.com/Thalhammer/jwt-cpp / TEST

Function TEST

tests/HelperTest.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8} // namespace
9
10TEST(HelperTest, Cert2Pubkey) {
11 auto key = jwt::helper::extract_pubkey_from_cert(google_cert);
12 ASSERT_EQ(google_public_key, key);
13}
14
15TEST(HelperTest, Base64DER2PemCert) {
16 auto cert_pem = jwt::helper::convert_base64_der_to_pem(google_cert_base64_der);

Callers

nothing calls this directly

Calls 7

extract_pubkey_from_certFunction · 0.85
convert_der_to_pemFunction · 0.85
messageMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected