| 4 | |
| 5 | template <typename T> |
| 6 | void check(T value, const std::string& expected) { |
| 7 | JsonDocument doc; |
| 8 | doc.to<JsonVariant>().set(value); |
| 9 | char buffer[256] = ""; |
| 10 | size_t returnValue = serializeMsgPack(doc, buffer, sizeof(buffer)); |
| 11 | REQUIRE(expected == buffer); |
| 12 | REQUIRE(expected.size() == returnValue); |
| 13 | } |
| 14 | |
| 15 | TEST_CASE("serializeMsgPack(MemberProxy)") { |
| 16 | JsonDocument doc; |
nothing calls this directly
no test coverage detected