Lines Matching defs:item
46 u_int *item = 0;
65 kxld_log(0, 0, "%d: Get item", ++test_num);
67 item = kxld_array_get_item(&array, idx);
68 assert(item);
69 assert(item == kxld_array_get_slot(&array, idx));
72 item = kxld_array_get_item(&array, idx);
73 assert(item);
74 assert(item == kxld_array_get_slot(&array, idx));
77 item = kxld_array_get_item(&array, idx);
78 assert(!item);
82 assert(item == kxld_array_get_slot(&array, idx));
93 item = kxld_array_get_item(&array, idx);
94 assert(item);
95 assert(item == kxld_array_get_slot(&array, idx));
98 item = kxld_array_get_item(&array, idx);
99 assert(item);
100 assert(item == kxld_array_get_slot(&array, idx));
103 item = kxld_array_get_item(&array, idx);
104 assert(!item);
108 assert(item != kxld_array_get_slot(&array, idx));
110 kxld_log(0, 0, "%d: Clear and attempt to get an item", ++test_num);
112 item = kxld_array_get_item(&array, 0);
113 assert(!item);
121 assert(!item);
122 item = kxld_array_get_slot(&array, 0);
123 assert(item);
124 item = kxld_array_get_slot(&array, titems - 1);
125 assert(item);
126 item = kxld_array_get_slot(&array, titems);
127 assert(!item);
139 item = kxld_array_get_item(&array, i);
140 assert(item);
142 *item = (u_int) (random() % UINT_MAX);
143 storageTestItems[i] = *item;
147 item = kxld_array_get_item(&array, i);
148 assert(item);
149 assert(*item == storageTestItems[i]);