| 43 | } |
| 44 | |
| 45 | static void assert_not_array(const char *json) |
| 46 | { |
| 47 | parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } }; |
| 48 | buffer.content = (const unsigned char*)json; |
| 49 | buffer.length = strlen(json) + sizeof(""); |
| 50 | buffer.hooks = global_hooks; |
| 51 | |
| 52 | TEST_ASSERT_FALSE(parse_array(item, &buffer)); |
| 53 | assert_is_invalid(item); |
| 54 | } |
| 55 | |
| 56 | static void assert_parse_array(const char *json) |
| 57 | { |
no test coverage detected
searching dependent graphs…