| 3 | #include <gtest/gtest.h> |
| 4 | |
| 5 | TEST(NlohmannTest, BasicClaims) { |
| 6 | const auto string = jwt::basic_claim<jwt::traits::nlohmann_json>(jwt::traits::nlohmann_json::string_type("string")); |
| 7 | ASSERT_EQ(string.get_type(), jwt::json::type::string); |
| 8 | |
| 9 | const auto array = jwt::basic_claim<jwt::traits::nlohmann_json>( |
| 10 | std::set<jwt::traits::nlohmann_json::string_type>{"string", "string"}); |
| 11 | ASSERT_EQ(array.get_type(), jwt::json::type::array); |
| 12 | |
| 13 | const auto integer = jwt::basic_claim<jwt::traits::nlohmann_json>(159816816); |
| 14 | ASSERT_EQ(integer.get_type(), jwt::json::type::integer); |
| 15 | } |
| 16 | |
| 17 | TEST(NlohmannTest, AudienceAsString) { |
| 18 | jwt::traits::nlohmann_json::string_type token = |
nothing calls this directly
no test coverage detected