| 37 | } |
| 38 | |
| 39 | static 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 | |
| 49 | TEST_CASE("deserializeMsgPack() returns IncompleteInput") { |
| 50 | SECTION("empty input") { |
no test coverage detected