Lines Matching refs:item
31 static cJSON item[1];
47 TEST_ASSERT_NOT_NULL_MESSAGE(child_item, "Child item is NULL.");
48 TEST_ASSERT_NOT_NULL_MESSAGE(child_item->string, "Child item doesn't have a name.");
49 TEST_ASSERT_EQUAL_STRING_MESSAGE(name, child_item->string, "Child item has the wrong name.");
60 TEST_ASSERT_FALSE(parse_object(item, &parsebuffer));
61 assert_is_invalid(item);
62 reset(item);
72 TEST_ASSERT_TRUE(parse_object(item, &parsebuffer));
73 assert_is_object(item);
79 assert_has_no_child(item);
80 reset(item);
83 assert_has_no_child(item);
84 reset(item);
91 assert_is_child(item->child, "one", cJSON_Number);
92 reset(item);
95 assert_is_child(item->child, "hello", cJSON_String);
96 reset(item);
99 assert_is_child(item->child, "array", cJSON_Array);
100 reset(item);
103 assert_is_child(item->child, "null", cJSON_NULL);
104 reset(item);
110 assert_is_child(item->child, "one", cJSON_Number);
111 assert_is_child(item->child->next, "two", cJSON_Number);
112 assert_is_child(item->child->next->next, "three", cJSON_Number);
113 reset(item);
140 node = item->child;
150 reset(item);
167 /* initialize cJSON item */
168 memset(item, 0, sizeof(cJSON));