| 353 | } |
| 354 | |
| 355 | static void cJSON_add_object_should_add_object(void) |
| 356 | { |
| 357 | cJSON *root = cJSON_CreateObject(); |
| 358 | cJSON *object = NULL; |
| 359 | |
| 360 | cJSON_AddObjectToObject(root, "object"); |
| 361 | TEST_ASSERT_NOT_NULL(object = cJSON_GetObjectItemCaseSensitive(root, "object")); |
| 362 | TEST_ASSERT_EQUAL_INT(object->type, cJSON_Object); |
| 363 | |
| 364 | cJSON_Delete(root); |
| 365 | } |
| 366 | |
| 367 | static void cjson_add_object_should_fail_with_null_pointers(void) |
| 368 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…