Lines Matching refs:found
69 cJSON *found = NULL;
73 found = cJSON_GetObjectItem(NULL, "test");
74 TEST_ASSERT_NULL_MESSAGE(found, "Failed to fail on NULL pointer.");
76 found = cJSON_GetObjectItem(item, NULL);
77 TEST_ASSERT_NULL_MESSAGE(found, "Failed to fail on NULL string.");
79 found = cJSON_GetObjectItem(item, "one");
80 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find first item.");
81 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 1);
83 found = cJSON_GetObjectItem(item, "tWo");
84 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find first item.");
85 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 2);
87 found = cJSON_GetObjectItem(item, "three");
88 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find item.");
89 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 3);
91 found = cJSON_GetObjectItem(item, "four");
92 TEST_ASSERT_NULL_MESSAGE(found, "Should not find something that isn't there.");
100 cJSON *found = NULL;
104 found = cJSON_GetObjectItemCaseSensitive(NULL, "test");
105 TEST_ASSERT_NULL_MESSAGE(found, "Failed to fail on NULL pointer.");
107 found = cJSON_GetObjectItemCaseSensitive(item, NULL);
108 TEST_ASSERT_NULL_MESSAGE(found, "Failed to fail on NULL string.");
110 found = cJSON_GetObjectItemCaseSensitive(item, "one");
111 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find first item.");
112 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 1);
114 found = cJSON_GetObjectItemCaseSensitive(item, "Two");
115 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find first item.");
116 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 2);
118 found = cJSON_GetObjectItemCaseSensitive(item, "tHree");
119 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find item.");
120 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 3);
122 found = cJSON_GetObjectItemCaseSensitive(item, "One");
123 TEST_ASSERT_NULL_MESSAGE(found, "Should not find something that isn't there.");
131 cJSON *found = NULL;
134 found = cJSON_GetObjectItem(array, "name");
135 TEST_ASSERT_NULL(found);
143 cJSON *found = NULL;
146 found = cJSON_GetObjectItemCaseSensitive(array, "name");
147 TEST_ASSERT_NULL(found);