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