| 51 | } |
| 52 | |
| 53 | static void assert_not_object(const char *json) |
| 54 | { |
| 55 | parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } }; |
| 56 | parsebuffer.content = (const unsigned char*)json; |
| 57 | parsebuffer.length = strlen(json) + sizeof(""); |
| 58 | parsebuffer.hooks = global_hooks; |
| 59 | |
| 60 | TEST_ASSERT_FALSE(parse_object(item, &parsebuffer)); |
| 61 | assert_is_invalid(item); |
| 62 | reset(item); |
| 63 | } |
| 64 | |
| 65 | static void assert_parse_object(const char *json) |
| 66 | { |
no test coverage detected
searching dependent graphs…