Lines Matching refs:tt_int_op
265 tt_int_op(r, ==, 1); in test_evbuffer()
276 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0); in test_evbuffer()
355 tt_int_op(evbuffer_get_length(src), ==, 9); in test_evbuffer_remove_buffer_with_empty2()
356 tt_int_op(evbuffer_get_length(dst), ==, 9); in test_evbuffer_remove_buffer_with_empty2()
369 tt_int_op(evbuffer_get_length(src), ==, 1); in test_evbuffer_remove_buffer_with_empty2()
370 tt_int_op(evbuffer_get_length(dst), ==, 17); in test_evbuffer_remove_buffer_with_empty2()
402 tt_int_op(evbuffer_get_length(src), ==, 6); in test_evbuffer_remove_buffer_with_empty3()
403 tt_int_op(evbuffer_get_length(dst), ==, 6); in test_evbuffer_remove_buffer_with_empty3()
416 tt_int_op(evbuffer_get_length(src), ==, 1); in test_evbuffer_remove_buffer_with_empty3()
417 tt_int_op(evbuffer_get_length(dst), ==, 11); in test_evbuffer_remove_buffer_with_empty3()
437 tt_int_op(evbuffer_get_length(buf), ==, 3); in test_evbuffer_pullup_with_empty()
443 tt_int_op(evbuffer_get_length(buf), ==, 0); in test_evbuffer_pullup_with_empty()
444 tt_int_op(evbuffer_pullup(buf, -1), ==, NULL); in test_evbuffer_pullup_with_empty()
469 tt_int_op(evbuffer_add_reference(buf1, "foo", 3, NULL, NULL), ==, 0); in test_evbuffer_remove_buffer_with_empty_front()
470 tt_int_op(evbuffer_prepend(buf1, "", 0), ==, 0); in test_evbuffer_remove_buffer_with_empty_front()
471 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 1), ==, 1); in test_evbuffer_remove_buffer_with_empty_front()
472 tt_int_op(evbuffer_add(buf1, "bar", 3), ==, 0); in test_evbuffer_remove_buffer_with_empty_front()
496 tt_int_op(evbuffer_add(buf1, "aaaaaa", 6), ==, 0); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
503 tt_int_op(evbuffer_reserve_space(buf1, 971, iovecs, 2), ==, 2); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
504 tt_int_op(iovecs[0].iov_len, >=, 1); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
505 tt_int_op(iovecs[1].iov_len, >=, 1); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
508 tt_int_op(evbuffer_commit_space(buf1, iovecs, 1), ==, 0); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
513 tt_int_op(evbuffer_add(buf2, "cc", 2), ==, 0); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
514 tt_int_op(evbuffer_prepend(buf2, "ddd", 3), ==, 0); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
518 tt_int_op(evbuffer_prepend_buffer(buf2, buf1), ==, 0); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
522 tt_int_op(evbuffer_add_buffer(buf1, buf2), ==, 0); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
526 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 11), ==, 11); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
560 tt_int_op(evbuffer_get_length(src), ==, 6); in test_evbuffer_add_buffer_with_empty()
561 tt_int_op(evbuffer_get_length(dst), ==, 6); in test_evbuffer_add_buffer_with_empty()
589 tt_int_op(evbuffer_get_length(src), ==, 3); in test_evbuffer_add_buffer_with_empty2()
590 tt_int_op(evbuffer_get_length(dst), ==, 3); in test_evbuffer_add_buffer_with_empty2()
613 tt_int_op(n, ==, 1); in test_evbuffer_reserve2()
614 tt_int_op(evbuffer_get_length(buf), ==, 0); in test_evbuffer_reserve2()
616 tt_int_op(v[0].iov_len, >=, 1024); in test_evbuffer_reserve2()
622 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1)); in test_evbuffer_reserve2()
623 tt_int_op(evbuffer_get_length(buf), ==, 512); in test_evbuffer_reserve2()
629 tt_int_op(n, ==, 1); in test_evbuffer_reserve2()
631 tt_int_op(remaining, ==, v[0].iov_len); in test_evbuffer_reserve2()
634 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1)); in test_evbuffer_reserve2()
635 tt_int_op(evbuffer_get_length(buf), ==, 520); in test_evbuffer_reserve2()
642 tt_int_op(n, ==, 2); in test_evbuffer_reserve2()
644 tt_int_op(remaining, ==, v[0].iov_len); in test_evbuffer_reserve2()
650 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1)); in test_evbuffer_reserve2()
651 tt_int_op(evbuffer_get_length(buf), ==, 521); in test_evbuffer_reserve2()
659 tt_int_op(n, ==, 2); in test_evbuffer_reserve2()
661 tt_int_op(remaining, ==, v[0].iov_len); in test_evbuffer_reserve2()
668 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 2)); in test_evbuffer_reserve2()
669 tt_int_op(evbuffer_get_length(buf), ==, 981); in test_evbuffer_reserve2()
675 tt_int_op(n, ==, 2); in test_evbuffer_reserve2()
676 tt_int_op(v[0].iov_len, ==, 921); in test_evbuffer_reserve2()
677 tt_int_op(v[1].iov_len, ==, 60); in test_evbuffer_reserve2()
681 tt_int_op(cp[i], ==, 'X'); in test_evbuffer_reserve2()
683 tt_int_op(cp[i], ==, 'Y'); in test_evbuffer_reserve2()
685 tt_int_op(cp[i], ==, 'Z'); in test_evbuffer_reserve2()
687 tt_int_op(cp[i], ==, 'W'); in test_evbuffer_reserve2()
691 tt_int_op(cp[i], ==, 'x'); in test_evbuffer_reserve2()
713 tt_int_op(n, ==, 1); in test_evbuffer_reserve_many()
721 tt_int_op(n, ==, 0); in test_evbuffer_reserve_many()
725 tt_int_op(n, ==, 0); in test_evbuffer_reserve_many()
727 tt_int_op(n, ==, 1); in test_evbuffer_reserve_many()
736 tt_int_op(n, ==, 2); in test_evbuffer_reserve_many()
738 tt_int_op(sz, >=, v[0].iov_len+128); in test_evbuffer_reserve_many()
750 tt_int_op(n, ==, 3); in test_evbuffer_reserve_many()
760 tt_int_op(n, ==, 2); in test_evbuffer_reserve_many()
763 tt_int_op(n, ==, 1); in test_evbuffer_reserve_many()
778 tt_int_op(evbuffer_reserve_space(buf, 1<<12, v, 2), ==, 2); in test_evbuffer_reserve_with_empty()
781 tt_int_op(evbuffer_commit_space(buf, v, 1), ==, 0); in test_evbuffer_reserve_with_empty()
811 tt_int_op(avec = evbuffer_reserve_space(buf, 1<<12, vec, nvec), >=, 1); in test_evbuffer_reserve_invalid_last_with_datap()
814 tt_int_op(evbuffer_commit_space(buf, vec, avec), ==, 0); in test_evbuffer_reserve_invalid_last_with_datap()
818 tt_int_op(evbuffer_reserve_space(buf, 1<<13, vec, nvec), >=, 1); in test_evbuffer_reserve_invalid_last_with_datap()
839 tt_int_op(evbuffer_expand(buf, 20000), ==, 0); in test_evbuffer_expand()
855 tt_int_op(evbuffer_expand(buf, 1024), ==, 0); in test_evbuffer_expand()
978 tt_int_op(len, ==, strlen(data)); in reference_cb()
1017 tt_int_op(reference_cb_called, ==, 1); in test_evbuffer_reference()
1280 tt_int_op(addfile_test_total_written, ==, expect_len); in test_evbuffer_add_file()
1281 tt_int_op(addfile_test_total_read, ==, expect_len); in test_evbuffer_add_file()
1336 tt_int_op(fd, >=, 0); in test_evbuffer_file_segment_add_cleanup_cb()
1353 tt_int_op(file_segment_cleanup_cb_called_count, ==, 0); in test_evbuffer_file_segment_add_cleanup_cb()
1357 tt_int_op(file_segment_cleanup_cb_called_count, ==, 0); in test_evbuffer_file_segment_add_cleanup_cb()
1361 tt_int_op(file_segment_cleanup_cb_called_count, ==, 1); in test_evbuffer_file_segment_add_cleanup_cb()
1531 tt_int_op(evbuffer_get_length(evb), ==, 0); in test_evbuffer_readln()
1640 tt_int_op(ptr1.pos, ==, 8); in test_evbuffer_search_eol()
1641 tt_int_op(eol_len, ==, 2); in test_evbuffer_search_eol()
1645 tt_int_op(ptr2.pos, ==, 8); in test_evbuffer_search_eol()
1646 tt_int_op(eol_len, ==, 2); in test_evbuffer_search_eol()
1651 tt_int_op(ptr2.pos, ==, 9); in test_evbuffer_search_eol()
1652 tt_int_op(eol_len, ==, 1); in test_evbuffer_search_eol()
1656 tt_int_op(ptr2.pos, ==, 10); in test_evbuffer_search_eol()
1657 tt_int_op(eol_len, ==, 2); in test_evbuffer_search_eol()
1661 tt_int_op(ptr1.pos, ==, 9); in test_evbuffer_search_eol()
1662 tt_int_op(eol_len, ==, 1); in test_evbuffer_search_eol()
1666 tt_int_op(ptr2.pos, ==, 9); in test_evbuffer_search_eol()
1667 tt_int_op(eol_len, ==, 1); in test_evbuffer_search_eol()
1672 tt_int_op(ptr2.pos, ==, 11); in test_evbuffer_search_eol()
1673 tt_int_op(eol_len, ==, 1); in test_evbuffer_search_eol()
1678 tt_int_op(ptr2.pos, ==, -1); in test_evbuffer_search_eol()
1679 tt_int_op(eol_len, ==, 0); in test_evbuffer_search_eol()
1785 tt_int_op(evbuffer_get_length(buf), ==, 0); in test_evbuffer_ptr_set()
1812 tt_int_op(evbuffer_get_length(buf), ==, 12000); in test_evbuffer_ptr_set()
1847 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1850 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1853 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1856 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1869 tt_int_op(pos.pos, ==, 11); in test_evbuffer_search()
1871 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1875 tt_int_op(pos.pos, ==, 7); in test_evbuffer_search()
1877 tt_int_op(pos.pos, ==, 8); in test_evbuffer_search()
1879 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1883 tt_int_op(pos.pos, ==, 5); in test_evbuffer_search()
1887 tt_int_op(pos.pos, ==, 10); in test_evbuffer_search()
1893 tt_int_op(pos.pos, ==, 5); in test_evbuffer_search()
1895 tt_int_op(pos.pos, ==, 5); in test_evbuffer_search()
1897 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1899 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1905 tt_int_op(pos.pos, ==, 11); in test_evbuffer_search()
1908 tt_int_op(pos.pos, ==, 11); in test_evbuffer_search()
1911 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1914 tt_int_op(pos.pos, ==, -1); in test_evbuffer_search()
1989 tt_int_op(evbuffer_setcb(buf, self_draining_callback, NULL), ==, 0); in test_evbuffer_callbacks()
1994 tt_int_op(evbuffer_setcb(buf, NULL, NULL), ==, 0); in test_evbuffer_callbacks()
2023 tt_int_op(evbuffer_setcb(buf, self_draining_callback, NULL), ==, -1); in test_evbuffer_callbacks()
2066 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2); in test_evbuffer_add_reference()
2069 tt_int_op(evbuffer_remove(buf1, tmp, 6), ==, 6); in test_evbuffer_add_reference()
2070 tt_int_op(memcmp(tmp, "If you", 6), ==, 0); in test_evbuffer_add_reference()
2071 tt_int_op(evbuffer_remove(buf1, tmp, 5), ==, 5); in test_evbuffer_add_reference()
2072 tt_int_op(memcmp(tmp, " have", 5), ==, 0); in test_evbuffer_add_reference()
2075 tt_int_op(evbuffer_prepend(buf1, "I have ", 7), ==, 0); in test_evbuffer_add_reference()
2076 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0); in test_evbuffer_add_reference()
2082 tt_int_op(ref_done_cb_called_count, ==, 0); in test_evbuffer_add_reference()
2084 tt_int_op(tmp[0], ==, 'm'); in test_evbuffer_add_reference()
2088 tt_int_op(ref_done_cb_called_count, ==, 1); in test_evbuffer_add_reference()
2095 tt_int_op(ref_done_cb_called_count, ==, 1); in test_evbuffer_add_reference()
2099 tt_int_op(ref_done_cb_called_count, ==, 1); in test_evbuffer_add_reference()
2101 tt_int_op(memcmp("I ought to write", tmp, 16), ==, 0); in test_evbuffer_add_reference()
2103 tt_int_op(ref_done_cb_called_count, ==, 2); in test_evbuffer_add_reference()
2115 tt_int_op(ref_done_cb_called_count, ==, 3); in test_evbuffer_add_reference()
2142 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2); in test_evbuffer_multicast()
2147 tt_int_op(evbuffer_add_buffer_reference(buf2, buf1), ==, 0); in test_evbuffer_multicast()
2149 tt_int_op(evbuffer_add_buffer_reference(buf2, buf2), ==, -1); in test_evbuffer_multicast()
2150 tt_int_op(evbuffer_add_buffer_reference(buf1, buf2), ==, -1); in test_evbuffer_multicast()
2153 tt_int_op(evbuffer_get_length(buf1), ==, evbuffer_get_length(buf1)); in test_evbuffer_multicast()
2156 tt_int_op(evbuffer_remove(buf1, tmp, 6), ==, 6); in test_evbuffer_multicast()
2157 tt_int_op(memcmp(tmp, "If you", 6), ==, 0); in test_evbuffer_multicast()
2158 tt_int_op(evbuffer_remove(buf1, tmp, 5), ==, 5); in test_evbuffer_multicast()
2159 tt_int_op(memcmp(tmp, " have", 5), ==, 0); in test_evbuffer_multicast()
2162 tt_int_op(evbuffer_prepend(buf1, "I have ", 7), ==, 0); in test_evbuffer_multicast()
2163 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0); in test_evbuffer_multicast()
2167 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6); in test_evbuffer_multicast()
2168 tt_int_op(memcmp(tmp, "If you", 6), ==, 0); in test_evbuffer_multicast()
2169 tt_int_op(evbuffer_remove(buf2, tmp, 5), ==, 5); in test_evbuffer_multicast()
2170 tt_int_op(memcmp(tmp, " have", 5), ==, 0); in test_evbuffer_multicast()
2173 tt_int_op(evbuffer_prepend(buf2, "I have ", 7), ==, 0); in test_evbuffer_multicast()
2174 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0); in test_evbuffer_multicast()
2181 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6); in test_evbuffer_multicast()
2182 tt_int_op(memcmp(tmp, "I have", 6), ==, 0); in test_evbuffer_multicast()
2184 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6); in test_evbuffer_multicast()
2185 tt_int_op(memcmp(tmp, " foun", 6), ==, 0); in test_evbuffer_multicast()
2210 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2); in test_evbuffer_multicast_drain()
2215 tt_int_op(evbuffer_add_buffer_reference(buf2, buf1), ==, 0); in test_evbuffer_multicast_drain()
2216 tt_int_op(evbuffer_get_length(buf2), ==, len1+len2+2); in test_evbuffer_multicast_drain()
2217 tt_int_op(evbuffer_drain(buf1, evbuffer_get_length(buf1)), ==, 0); in test_evbuffer_multicast_drain()
2218 tt_int_op(evbuffer_get_length(buf2), ==, len1+len2+2); in test_evbuffer_multicast_drain()
2219 tt_int_op(evbuffer_drain(buf2, evbuffer_get_length(buf2)), ==, 0); in test_evbuffer_multicast_drain()
2235 tt_int_op(cbinfo->orig_size, ==, 3); in check_prepend()
2236 tt_int_op(cbinfo->n_added, ==, 8096); in check_prepend()
2237 tt_int_op(cbinfo->n_deleted, ==, 0); in check_prepend()
2271 tt_int_op(n, >=, 0); in test_evbuffer_prepend()
2290 tt_int_op(n, >=, 0); in test_evbuffer_prepend()
2387 tt_int_op(evbuffer_peek(buf, -1, &ptr, NULL, 0), ==, 2); in test_evbuffer_peek_first_gt()
2389 tt_int_op(evbuffer_peek(buf, -1, &ptr, v, 2), ==, 2); in test_evbuffer_peek_first_gt()
2392 tt_int_op(evbuffer_peek(buf, -1, &ptr, NULL, 0), ==, 2); in test_evbuffer_peek_first_gt()
2393 tt_int_op(evbuffer_peek(buf, -1, &ptr, v, 2), ==, 2); in test_evbuffer_peek_first_gt()
2394 tt_int_op(evbuffer_peek(buf, 2, &ptr, NULL, 0), ==, 1); in test_evbuffer_peek_first_gt()
2395 tt_int_op(evbuffer_peek(buf, 2, &ptr, v, 2), ==, 1); in test_evbuffer_peek_first_gt()
2396 tt_int_op(evbuffer_peek(buf, 3, &ptr, NULL, 0), ==, 2); in test_evbuffer_peek_first_gt()
2397 tt_int_op(evbuffer_peek(buf, 3, &ptr, v, 2), ==, 2); in test_evbuffer_peek_first_gt()
2415 tt_int_op((v)->iov_len, ==, strlen(s)); \ in test_evbuffer_peek()
2428 tt_int_op(i, ==, 16); in test_evbuffer_peek()
2432 tt_int_op(i, ==, 16); /* we used only 16 chunks. */ in test_evbuffer_peek()
2441 tt_int_op(i, ==, 1); in test_evbuffer_peek()
2448 tt_int_op(i, ==, 2); in test_evbuffer_peek()
2456 tt_int_op(i, ==, 5); in test_evbuffer_peek()
2462 tt_int_op(i, ==, 3); in test_evbuffer_peek()
2469 tt_int_op(i, ==, 16); /* we used only 16 chunks. */ in test_evbuffer_peek()
2479 tt_int_op(i, ==, 0); in test_evbuffer_peek()
2483 tt_int_op(i, ==, 0); in test_evbuffer_peek()
2490 tt_int_op(i, ==, 3); in test_evbuffer_peek()
2499 tt_int_op(i, ==, 2); in test_evbuffer_peek()
2507 tt_int_op(i, ==, 0); in test_evbuffer_peek()
2562 tt_int_op((a), ==, (startcase)); \ in test_evbuffer_freeze()
2564 tt_int_op((a), ==, (endcase)); \ in test_evbuffer_freeze()
2604 tt_int_op(orig_length, ==, evbuffer_get_length(buf)); in test_evbuffer_freeze()
2639 tt_int_op(orig_length, ==, evbuffer_get_length(buf)); in test_evbuffer_freeze()
2685 tt_int_op(returned_length, ==, evbuffer_get_length(buf)); in test_evbuffer_add_iovec()
2686 tt_int_op(evbuffer_get_length(buf), ==, expected_length); in test_evbuffer_add_iovec()
2721 tt_int_op(strlen(string), ==, 206); in test_evbuffer_copyout()
2728 tt_int_op(206, ==, evbuffer_get_length(buf)); in test_evbuffer_copyout()
2733 tt_int_op(10, ==, evbuffer_copyout(buf, tmp, 10)); in test_evbuffer_copyout()
2734 tt_int_op(0, ==, memcmp(tmp, "Still they", 10)); in test_evbuffer_copyout()
2738 tt_int_op(100, ==, evbuffer_copyout(buf, tmp, 100)); in test_evbuffer_copyout()
2739 tt_int_op(0, ==, memcmp(tmp, string, 100)); in test_evbuffer_copyout()
2743 tt_int_op(206, ==, evbuffer_copyout(buf, tmp, 230)); in test_evbuffer_copyout()
2744 tt_int_op(0, ==, memcmp(tmp, string, 206)); in test_evbuffer_copyout()
2747 tt_int_op(206, ==, evbuffer_get_length(buf)); in test_evbuffer_copyout()
2753 tt_int_op(10, ==, evbuffer_copyout_from(buf, &ptr, tmp, 10)); in test_evbuffer_copyout()
2754 tt_int_op(0, ==, memcmp(tmp, "mish to an", 10)); in test_evbuffer_copyout()
2758 tt_int_op(65, ==, evbuffer_copyout_from(buf, &ptr, tmp, 65)); in test_evbuffer_copyout()
2759 tt_int_op(0, ==, memcmp(tmp, string+15, 65)); in test_evbuffer_copyout()
2763 tt_int_op(90, ==, evbuffer_copyout_from(buf, &ptr, tmp, 90)); in test_evbuffer_copyout()
2764 tt_int_op(0, ==, memcmp(tmp, string+15, 90)); in test_evbuffer_copyout()
2768 tt_int_op(160, ==, evbuffer_copyout_from(buf, &ptr, tmp, 160)); in test_evbuffer_copyout()
2769 tt_int_op(0, ==, memcmp(tmp, string+15, 160)); in test_evbuffer_copyout()
2773 tt_int_op(206-15, ==, evbuffer_copyout_from(buf, &ptr, tmp, 999)); in test_evbuffer_copyout()
2774 tt_int_op(0, ==, memcmp(tmp, string+15, 206-15)); in test_evbuffer_copyout()
2777 tt_int_op(206, ==, evbuffer_get_length(buf)); in test_evbuffer_copyout()