| 2 | #include <yaml-cpp/binary.h> |
| 3 | |
| 4 | TEST(BinaryTest, DecodingSimple) { |
| 5 | std::string input{90, 71, 86, 104, 90, 71, 74, 108, 90, 87, 89, 61}; |
| 6 | const std::vector<unsigned char> &result = YAML::DecodeBase64(input); |
| 7 | EXPECT_EQ(std::string(result.begin(), result.end()), "deadbeef"); |
| 8 | } |
| 9 | |
| 10 | TEST(BinaryTest, DecodingNoCrashOnNegative) { |
| 11 | std::string input{-58, -1, -99, 109}; |
nothing calls this directly
no test coverage detected