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

Function checkError

extras/tests/MsgPackDeserializer/deserializeVariant.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static void checkError(size_t timebombCountDown, const char* input,
23 DeserializationError expected) {
24 TimebombAllocator timebomb(timebombCountDown);
25 JsonDocument doc(&timebomb);
26
27 DeserializationError error = deserializeMsgPack(doc, input);
28
29 CAPTURE(input);
30 REQUIRE(error == expected);
31}
32
33TEST_CASE("deserialize MsgPack value") {
34 SECTION("nil") {

Callers 1

Calls 1

deserializeMsgPackFunction · 0.85

Tested by

no test coverage detected