Home
last modified time | relevance | path

Searched refs:TEST_ASSERT_NULL (Results 1 - 12 of 12) sorted by relevance

/third_party/cJSON/tests/
H A Dcjson_add.c65 TEST_ASSERT_NULL(cJSON_AddNullToObject(NULL, "null")); in cjson_add_null_should_fail_with_null_pointers()
66 TEST_ASSERT_NULL(cJSON_AddNullToObject(root, NULL)); in cjson_add_null_should_fail_with_null_pointers()
77 TEST_ASSERT_NULL(cJSON_AddNullToObject(root, "null")); in cjson_add_null_should_fail_on_allocation_failure()
101 TEST_ASSERT_NULL(cJSON_AddTrueToObject(NULL, "true")); in cjson_add_true_should_fail_with_null_pointers()
102 TEST_ASSERT_NULL(cJSON_AddTrueToObject(root, NULL)); in cjson_add_true_should_fail_with_null_pointers()
113 TEST_ASSERT_NULL(cJSON_AddTrueToObject(root, "true")); in cjson_add_true_should_fail_on_allocation_failure()
126 TEST_ASSERT_NULL(cJSON_CreateIntArray(numbers, 3)); in cjson_create_int_array_should_fail_on_allocation_failure()
137 TEST_ASSERT_NULL(cJSON_CreateFloatArray(numbers, 3)); in cjson_create_float_array_should_fail_on_allocation_failure()
148 TEST_ASSERT_NULL(cJSON_CreateDoubleArray(numbers, 3)); in cjson_create_double_array_should_fail_on_allocation_failure()
159 TEST_ASSERT_NULL(cJSON_CreateStringArra in cjson_create_string_array_should_fail_on_allocation_failure()
[all...]
H A Dmisc_utils_tests.c37 TEST_ASSERT_NULL(cJSONUtils_GetPointer(item, NULL)); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
38 TEST_ASSERT_NULL(cJSONUtils_GetPointer(NULL, "pointer")); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
39 TEST_ASSERT_NULL(cJSONUtils_GetPointerCaseSensitive(NULL, "pointer")); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
40 TEST_ASSERT_NULL(cJSONUtils_GetPointerCaseSensitive(item, NULL)); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
41 TEST_ASSERT_NULL(cJSONUtils_GeneratePatches(item, NULL)); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
42 TEST_ASSERT_NULL(cJSONUtils_GeneratePatches(NULL, item)); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
43 TEST_ASSERT_NULL(cJSONUtils_GeneratePatchesCaseSensitive(item, NULL)); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
44 TEST_ASSERT_NULL(cJSONUtils_GeneratePatchesCaseSensitive(NULL, item)); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
53 TEST_ASSERT_NULL(cJSONUtils_MergePatch(item, NULL)); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
55 TEST_ASSERT_NULL(cJSONUtils_MergePatchCaseSensitiv in cjson_utils_functions_shouldnt_crash_with_null_pointers()
[all...]
H A Dmisc_tests.c135 TEST_ASSERT_NULL(found); in cjson_get_object_item_should_not_crash_with_array()
147 TEST_ASSERT_NULL(found); in cjson_get_object_item_case_sensitive_should_not_crash_with_array()
333 TEST_ASSERT_NULL(replacements[2].next); in cjson_replace_item_via_pointer_should_replace_items()
380 TEST_ASSERT_NULL(cJSON_Parse(NULL)); in cjson_functions_should_not_crash_with_null_pointers()
381 TEST_ASSERT_NULL(cJSON_ParseWithOpts(NULL, NULL, true)); in cjson_functions_should_not_crash_with_null_pointers()
382 TEST_ASSERT_NULL(cJSON_Print(NULL)); in cjson_functions_should_not_crash_with_null_pointers()
383 TEST_ASSERT_NULL(cJSON_PrintUnformatted(NULL)); in cjson_functions_should_not_crash_with_null_pointers()
384 TEST_ASSERT_NULL(cJSON_PrintBuffered(NULL, 10, true)); in cjson_functions_should_not_crash_with_null_pointers()
389 TEST_ASSERT_NULL(cJSON_GetArrayItem(NULL, 0)); in cjson_functions_should_not_crash_with_null_pointers()
390 TEST_ASSERT_NULL(cJSON_GetObjectIte in cjson_functions_should_not_crash_with_null_pointers()
[all...]
H A Dparse_with_opts.c44 TEST_ASSERT_NULL(cJSON_ParseWithOpts(empty_string, NULL, false)); in parse_with_opts_should_handle_empty_strings()
47 TEST_ASSERT_NULL(cJSON_ParseWithOpts(empty_string, &error_pointer, false)); in parse_with_opts_should_handle_empty_strings()
57 TEST_ASSERT_NULL(cJSON_ParseWithOpts(json, &parse_end, false)); in parse_with_opts_should_handle_incomplete_json()
70 TEST_ASSERT_NULL(cJSON_ParseWithOpts("{}x", NULL, true)); in parse_with_opts_should_require_null_if_requested()
H A Dmisc_int64_tests.c154 TEST_ASSERT_NULL(cJSON_GetInt64NumberValue(NULL)); in cjson_functions_should_not_crash_with_null_pointers_with_int64()
166 TEST_ASSERT_NULL(cJSON_GetInt64NumberValue(string)); in cjson_get_number_value_should_get_a_number_with_int64()
167 TEST_ASSERT_NULL(cJSON_GetInt64NumberValue(NULL)); in cjson_get_number_value_should_get_a_number_with_int64()
H A Dparse_array.c110 TEST_ASSERT_NULL(item->child->next->next->next); in parse_array_should_parse_arrays_with_multiple_elements()
/third_party/unity/extras/memory/test/
H A Dunity_memory_Test.c271 TEST_ASSERT_NULL(n); in test_MallocPastBufferFails()
285 TEST_ASSERT_NULL(n); in test_CallocPastBufferFails()
319 TEST_ASSERT_NULL(out_of_mem); /* The realloc should have failed */ in test_ReallocFailDoesNotFreeMem()
/third_party/unity/test/tests/
H A Dtest_unity_core.c201 TEST_ASSERT_NULL(ptr1); in testIsNull()
210 TEST_ASSERT_NULL(ptr1); in testIsNullShouldFailIfNot()
/third_party/cJSON/tests/unity/extras/fixture/test/
H A Dunity_fixture_Test.c497 TEST_ASSERT_NULL(n); in TEST()
509 TEST_ASSERT_NULL(n); in TEST()
539 TEST_ASSERT_NULL(out_of_mem); /* The realloc should have failed */ in TEST()
/third_party/cJSON/tests/unity/test/tests/
H A Dtestunity.c204 TEST_ASSERT_NULL(ptr1); in testIsNull()
213 TEST_ASSERT_NULL(ptr1); in testIsNullShouldFailIfNot()
/third_party/cJSON/tests/unity/src/
H A Dunity.h124 #define TEST_ASSERT_NULL(pointer) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, " Expected NULL") macro
/third_party/unity/src/
H A Dunity.h139 #define TEST_ASSERT_NULL(pointer) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, " Expected NULL") macro

Completed in 24 milliseconds