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

Function testIncompleteInput

extras/tests/MsgPackDeserializer/errors.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static void testIncompleteInput(const char* input, size_t len) {
40 JsonDocument doc;
41 REQUIRE(deserializeMsgPack(doc, input, len) == DeserializationError::Ok);
42
43 while (--len) {
44 REQUIRE(deserializeMsgPack(doc, input, len) ==
45 DeserializationError::IncompleteInput);
46 }
47}
48
49TEST_CASE("deserializeMsgPack() returns IncompleteInput") {
50 SECTION("empty input") {

Callers 1

errors.cppFile · 0.85

Calls 1

deserializeMsgPackFunction · 0.85

Tested by

no test coverage detected