• Home
  • Raw
  • Download

Lines Matching full:head

61   struct curl_llist_element *head;  variable
74 * 2: list head will be NULL
80 fail_unless(llist->head == NULL, "list head should initiate to NULL");
91 * 2: list head will hold the data "unusedData_case1"
92 * 3: list tail will be the same as list head
95 curlErrCode = Curl_llist_insert_next(llist, llist->head, &unusedData_case1);
99 /*test that the list head data holds my unusedData */
100 fail_unless(llist->head->ptr == &unusedData_case1,
103 fail_unless(llist->tail == llist->head,
109 * list has 1 element, adding one element after the head
111 * 1: the element next to head should be our newly created element
115 curlErrCode = Curl_llist_insert_next(llist, llist->head,
118 fail_unless(llist->head->next->ptr == &unusedData_case3,
119 "the node next to head is not getting set correctly");
133 * 1: the element next to head should be our newly created element
137 curlErrCode = Curl_llist_insert_next(llist, llist->head,
140 fail_unless(llist->head->next->ptr == &unusedData_case2,
141 "the node next to head is not getting set correctly");
161 * list has >1 element, removing head
164 * 2: head will be the head->next
165 * 3: "new" head's previous will be NULL
168 head=llist->head;
169 abort_unless(head, "llist->head is NULL");
170 element_next = head->next;
173 Curl_llist_remove(llist, llist->head, NULL);
177 fail_unless(llist->head == element_next,
178 "llist new head not modified properly");
179 abort_unless(llist->head, "llist->head is NULL");
180 fail_unless(llist->head->prev == NULL,
181 "new head previous not set to null");
185 * removing non head element, with list having >=2 elements
193 Curl_llist_insert_next(llist, llist->head, &unusedData_case3);
195 to_remove = llist->head->next;
224 * removing head with list having 1 element
227 * 2: list head will be null
231 to_remove = llist->head;
233 fail_unless(llist->head == NULL,
234 "llist head is not NULL while the llist is empty");
245 * moving head from an llist containg one element to an empty llist
249 * 3: llist head will be NULL
250 * 4: llist_destination head == llist_destination tail != NULL
258 curlErrCode = Curl_llist_insert_next(llist, llist->head, &unusedData_case1);
269 curlErrCode = Curl_llist_move(llist, llist->head, llist_destination, NULL);
278 fail_unless(llist->head == NULL,
279 "llist head not set to null after moving the head");
281 fail_unless(llist_destination->head != NULL,
282 "llist_destination head set to null after moving an element");
288 "llist_destination tail doesn't equal llist_destination head");