| 388 | } |
| 389 | |
| 390 | static void cJSON_add_array_should_add_array(void) |
| 391 | { |
| 392 | cJSON *root = cJSON_CreateObject(); |
| 393 | cJSON *array = NULL; |
| 394 | |
| 395 | cJSON_AddArrayToObject(root, "array"); |
| 396 | TEST_ASSERT_NOT_NULL(array = cJSON_GetObjectItemCaseSensitive(root, "array")); |
| 397 | TEST_ASSERT_EQUAL_INT(array->type, cJSON_Array); |
| 398 | |
| 399 | cJSON_Delete(root); |
| 400 | } |
| 401 | |
| 402 | static void cjson_add_array_should_fail_with_null_pointers(void) |
| 403 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…