MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / check

Function check

extras/tests/MsgPackSerializer/misc.cpp:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5template <typename T>
6void 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
15TEST_CASE("serializeMsgPack(MemberProxy)") {
16 JsonDocument doc;

Callers

nothing calls this directly

Calls 3

serializeMsgPackFunction · 0.85
setMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected