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

Function check

extras/tests/MsgPackSerializer/serializeObject.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "Literals.hpp"
10
11static void check(const JsonObject object, const char* expected_data,
12 size_t expected_len) {
13 std::string expected(expected_data, expected_data + expected_len);
14 std::string actual;
15 size_t len = serializeMsgPack(object, actual);
16 CAPTURE(object);
17 REQUIRE(len == expected_len);
18 REQUIRE(actual == expected);
19}
20
21template <size_t N>
22static void check(const JsonObject object, const char (&expected_data)[N]) {

Callers 1

Calls 1

serializeMsgPackFunction · 0.85

Tested by

no test coverage detected