| 58 | } |
| 59 | |
| 60 | static void assert_not_parse_string(const char * const string) |
| 61 | { |
| 62 | parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } }; |
| 63 | buffer.content = (const unsigned char*)string; |
| 64 | buffer.length = strlen(string) + sizeof(""); |
| 65 | buffer.hooks = global_hooks; |
| 66 | |
| 67 | TEST_ASSERT_FALSE_MESSAGE(parse_string(item, &buffer), "Malformed string should not be accepted."); |
| 68 | assert_is_invalid(item); |
| 69 | } |
| 70 | |
| 71 | |
| 72 |
no test coverage detected
searching dependent graphs…