Lines Matching refs:tt_int_op
267 tt_int_op(r, ==, 1);
278 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0);
357 tt_int_op(evbuffer_get_length(src), ==, 9);
358 tt_int_op(evbuffer_get_length(dst), ==, 9);
371 tt_int_op(evbuffer_get_length(src), ==, 1);
372 tt_int_op(evbuffer_get_length(dst), ==, 17);
404 tt_int_op(evbuffer_get_length(src), ==, 6);
405 tt_int_op(evbuffer_get_length(dst), ==, 6);
418 tt_int_op(evbuffer_get_length(src), ==, 1);
419 tt_int_op(evbuffer_get_length(dst), ==, 11);
439 tt_int_op(evbuffer_get_length(buf), ==, 3);
445 tt_int_op(evbuffer_get_length(buf), ==, 0);
446 tt_int_op(evbuffer_pullup(buf, -1), ==, NULL);
471 tt_int_op(evbuffer_add_reference(buf1, "foo", 3, NULL, NULL), ==, 0);
472 tt_int_op(evbuffer_prepend(buf1, "", 0), ==, 0);
473 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 1), ==, 1);
474 tt_int_op(evbuffer_add(buf1, "bar", 3), ==, 0);
498 tt_int_op(evbuffer_add(buf1, "aaaaaa", 6), ==, 0);
505 tt_int_op(evbuffer_reserve_space(buf1, 971, iovecs, 2), ==, 2);
506 tt_int_op(iovecs[0].iov_len, >=, 1);
507 tt_int_op(iovecs[1].iov_len, >=, 1);
510 tt_int_op(evbuffer_commit_space(buf1, iovecs, 1), ==, 0);
515 tt_int_op(evbuffer_add(buf2, "cc", 2), ==, 0);
516 tt_int_op(evbuffer_prepend(buf2, "ddd", 3), ==, 0);
520 tt_int_op(evbuffer_prepend_buffer(buf2, buf1), ==, 0);
524 tt_int_op(evbuffer_add_buffer(buf1, buf2), ==, 0);
528 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 11), ==, 11);
562 tt_int_op(evbuffer_get_length(src), ==, 6);
563 tt_int_op(evbuffer_get_length(dst), ==, 6);
591 tt_int_op(evbuffer_get_length(src), ==, 3);
592 tt_int_op(evbuffer_get_length(dst), ==, 3);
615 tt_int_op(n, ==, 1);
616 tt_int_op(evbuffer_get_length(buf), ==, 0);
618 tt_int_op(v[0].iov_len, >=, 1024);
624 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1));
625 tt_int_op(evbuffer_get_length(buf), ==, 512);
631 tt_int_op(n, ==, 1);
633 tt_int_op(remaining, ==, v[0].iov_len);
636 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1));
637 tt_int_op(evbuffer_get_length(buf), ==, 520);
644 tt_int_op(n, ==, 2);
646 tt_int_op(remaining, ==, v[0].iov_len);
652 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1));
653 tt_int_op(evbuffer_get_length(buf), ==, 521);
661 tt_int_op(n, ==, 2);
663 tt_int_op(remaining, ==, v[0].iov_len);
670 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 2));
671 tt_int_op(evbuffer_get_length(buf), ==, 981);
677 tt_int_op(n, ==, 2);
678 tt_int_op(v[0].iov_len, ==, 921);
679 tt_int_op(v[1].iov_len, ==, 60);
683 tt_int_op(cp[i], ==, 'X');
685 tt_int_op(cp[i], ==, 'Y');
687 tt_int_op(cp[i], ==, 'Z');
689 tt_int_op(cp[i], ==, 'W');
693 tt_int_op(cp[i], ==, 'x');
715 tt_int_op(n, ==, 1);
723 tt_int_op(n, ==, 0);
727 tt_int_op(n, ==, 0);
729 tt_int_op(n, ==, 1);
738 tt_int_op(n, ==, 2);
740 tt_int_op(sz, >=, v[0].iov_len+128);
752 tt_int_op(n, ==, 3);
762 tt_int_op(n, ==, 2);
765 tt_int_op(n, ==, 1);
780 tt_int_op(evbuffer_reserve_space(buf, 1<<12, v, 2), ==, 2);
783 tt_int_op(evbuffer_commit_space(buf, v, 1), ==, 0);
813 tt_int_op(avec = evbuffer_reserve_space(buf, 1<<12, vec, nvec), >=, 1);
816 tt_int_op(evbuffer_commit_space(buf, vec, avec), ==, 0);
820 tt_int_op(evbuffer_reserve_space(buf, 1<<13, vec, nvec), >=, 1);
841 tt_int_op(evbuffer_expand(buf, 20000), ==, 0);
857 tt_int_op(evbuffer_expand(buf, 1024), ==, 0);
980 tt_int_op(len, ==, strlen(data));
1019 tt_int_op(reference_cb_called, ==, 1);
1282 tt_int_op(addfile_test_total_written, ==, expect_len);
1283 tt_int_op(addfile_test_total_read, ==, expect_len);
1338 tt_int_op(fd, >=, 0);
1355 tt_int_op(file_segment_cleanup_cb_called_count, ==, 0);
1359 tt_int_op(file_segment_cleanup_cb_called_count, ==, 0);
1363 tt_int_op(file_segment_cleanup_cb_called_count, ==, 1);
1533 tt_int_op(evbuffer_get_length(evb), ==, 0);
1642 tt_int_op(ptr1.pos, ==, 8);
1643 tt_int_op(eol_len, ==, 2);
1647 tt_int_op(ptr2.pos, ==, 8);
1648 tt_int_op(eol_len, ==, 2);
1653 tt_int_op(ptr2.pos, ==, 9);
1654 tt_int_op(eol_len, ==, 1);
1658 tt_int_op(ptr2.pos, ==, 10);
1659 tt_int_op(eol_len, ==, 2);
1663 tt_int_op(ptr1.pos, ==, 9);
1664 tt_int_op(eol_len, ==, 1);
1668 tt_int_op(ptr2.pos, ==, 9);
1669 tt_int_op(eol_len, ==, 1);
1674 tt_int_op(ptr2.pos, ==, 11);
1675 tt_int_op(eol_len, ==, 1);
1680 tt_int_op(ptr2.pos, ==, -1);
1681 tt_int_op(eol_len, ==, 0);
1787 tt_int_op(evbuffer_get_length(buf), ==, 0);
1814 tt_int_op(evbuffer_get_length(buf), ==, 12000);
1849 tt_int_op(pos.pos, ==, -1);
1852 tt_int_op(pos.pos, ==, -1);
1855 tt_int_op(pos.pos, ==, -1);
1858 tt_int_op(pos.pos, ==, -1);
1871 tt_int_op(pos.pos, ==, 11);
1873 tt_int_op(pos.pos, ==, -1);
1877 tt_int_op(pos.pos, ==, 7);
1879 tt_int_op(pos.pos, ==, 8);
1881 tt_int_op(pos.pos, ==, -1);
1885 tt_int_op(pos.pos, ==, 5);
1889 tt_int_op(pos.pos, ==, 10);
1895 tt_int_op(pos.pos, ==, 5);
1897 tt_int_op(pos.pos, ==, 5);
1899 tt_int_op(pos.pos, ==, -1);
1901 tt_int_op(pos.pos, ==, -1);
1907 tt_int_op(pos.pos, ==, 11);
1910 tt_int_op(pos.pos, ==, 11);
1913 tt_int_op(pos.pos, ==, -1);
1916 tt_int_op(pos.pos, ==, -1);
1991 tt_int_op(evbuffer_setcb(buf, self_draining_callback, NULL), ==, 0);
1996 tt_int_op(evbuffer_setcb(buf, NULL, NULL), ==, 0);
2025 tt_int_op(evbuffer_setcb(buf, self_draining_callback, NULL), ==, -1);
2068 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2);
2071 tt_int_op(evbuffer_remove(buf1, tmp, 6), ==, 6);
2072 tt_int_op(memcmp(tmp, "If you", 6), ==, 0);
2073 tt_int_op(evbuffer_remove(buf1, tmp, 5), ==, 5);
2074 tt_int_op(memcmp(tmp, " have", 5), ==, 0);
2077 tt_int_op(evbuffer_prepend(buf1, "I have ", 7), ==, 0);
2078 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0);
2084 tt_int_op(ref_done_cb_called_count, ==, 0);
2086 tt_int_op(tmp[0], ==, 'm');
2090 tt_int_op(ref_done_cb_called_count, ==, 1);
2097 tt_int_op(ref_done_cb_called_count, ==, 1);
2101 tt_int_op(ref_done_cb_called_count, ==, 1);
2103 tt_int_op(memcmp("I ought to write", tmp, 16), ==, 0);
2105 tt_int_op(ref_done_cb_called_count, ==, 2);
2117 tt_int_op(ref_done_cb_called_count, ==, 3);
2144 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2);
2149 tt_int_op(evbuffer_add_buffer_reference(buf2, buf1), ==, 0);
2151 tt_int_op(evbuffer_add_buffer_reference(buf2, buf2), ==, -1);
2152 tt_int_op(evbuffer_add_buffer_reference(buf1, buf2), ==, -1);
2155 tt_int_op(evbuffer_get_length(buf1), ==, evbuffer_get_length(buf1));
2158 tt_int_op(evbuffer_remove(buf1, tmp, 6), ==, 6);
2159 tt_int_op(memcmp(tmp, "If you", 6), ==, 0);
2160 tt_int_op(evbuffer_remove(buf1, tmp, 5), ==, 5);
2161 tt_int_op(memcmp(tmp, " have", 5), ==, 0);
2164 tt_int_op(evbuffer_prepend(buf1, "I have ", 7), ==, 0);
2165 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0);
2169 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6);
2170 tt_int_op(memcmp(tmp, "If you", 6), ==, 0);
2171 tt_int_op(evbuffer_remove(buf2, tmp, 5), ==, 5);
2172 tt_int_op(memcmp(tmp, " have", 5), ==, 0);
2175 tt_int_op(evbuffer_prepend(buf2, "I have ", 7), ==, 0);
2176 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0);
2183 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6);
2184 tt_int_op(memcmp(tmp, "I have", 6), ==, 0);
2186 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6);
2187 tt_int_op(memcmp(tmp, " foun", 6), ==, 0);
2212 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2);
2217 tt_int_op(evbuffer_add_buffer_reference(buf2, buf1), ==, 0);
2218 tt_int_op(evbuffer_get_length(buf2), ==, len1+len2+2);
2219 tt_int_op(evbuffer_drain(buf1, evbuffer_get_length(buf1)), ==, 0);
2220 tt_int_op(evbuffer_get_length(buf2), ==, len1+len2+2);
2221 tt_int_op(evbuffer_drain(buf2, evbuffer_get_length(buf2)), ==, 0);
2237 tt_int_op(cbinfo->orig_size, ==, 3);
2238 tt_int_op(cbinfo->n_added, ==, 8096);
2239 tt_int_op(cbinfo->n_deleted, ==, 0);
2273 tt_int_op(n, >=, 0);
2292 tt_int_op(n, >=, 0);
2389 tt_int_op(evbuffer_peek(buf, -1, &ptr, NULL, 0), ==, 2);
2391 tt_int_op(evbuffer_peek(buf, -1, &ptr, v, 2), ==, 2);
2394 tt_int_op(evbuffer_peek(buf, -1, &ptr, NULL, 0), ==, 2);
2395 tt_int_op(evbuffer_peek(buf, -1, &ptr, v, 2), ==, 2);
2396 tt_int_op(evbuffer_peek(buf, 2, &ptr, NULL, 0), ==, 1);
2397 tt_int_op(evbuffer_peek(buf, 2, &ptr, v, 2), ==, 1);
2398 tt_int_op(evbuffer_peek(buf, 3, &ptr, NULL, 0), ==, 2);
2399 tt_int_op(evbuffer_peek(buf, 3, &ptr, v, 2), ==, 2);
2417 tt_int_op((v)->iov_len, ==, strlen(s)); \
2430 tt_int_op(i, ==, 16);
2434 tt_int_op(i, ==, 16); /* we used only 16 chunks. */
2443 tt_int_op(i, ==, 1);
2450 tt_int_op(i, ==, 2);
2458 tt_int_op(i, ==, 5);
2464 tt_int_op(i, ==, 3);
2471 tt_int_op(i, ==, 16); /* we used only 16 chunks. */
2481 tt_int_op(i, ==, 0);
2485 tt_int_op(i, ==, 0);
2492 tt_int_op(i, ==, 3);
2501 tt_int_op(i, ==, 2);
2509 tt_int_op(i, ==, 0);
2564 tt_int_op((a), ==, (startcase)); \
2566 tt_int_op((a), ==, (endcase)); \
2606 tt_int_op(orig_length, ==, evbuffer_get_length(buf));
2641 tt_int_op(orig_length, ==, evbuffer_get_length(buf));
2687 tt_int_op(returned_length, ==, evbuffer_get_length(buf));
2688 tt_int_op(evbuffer_get_length(buf), ==, expected_length);
2723 tt_int_op(strlen(string), ==, 206);
2730 tt_int_op(206, ==, evbuffer_get_length(buf));
2735 tt_int_op(10, ==, evbuffer_copyout(buf, tmp, 10));
2736 tt_int_op(0, ==, memcmp(tmp, "Still they", 10));
2740 tt_int_op(100, ==, evbuffer_copyout(buf, tmp, 100));
2741 tt_int_op(0, ==, memcmp(tmp, string, 100));
2745 tt_int_op(206, ==, evbuffer_copyout(buf, tmp, 230));
2746 tt_int_op(0, ==, memcmp(tmp, string, 206));
2749 tt_int_op(206, ==, evbuffer_get_length(buf));
2755 tt_int_op(10, ==, evbuffer_copyout_from(buf, &ptr, tmp, 10));
2756 tt_int_op(0, ==, memcmp(tmp, "mish to an", 10));
2760 tt_int_op(65, ==, evbuffer_copyout_from(buf, &ptr, tmp, 65));
2761 tt_int_op(0, ==, memcmp(tmp, string+15, 65));
2765 tt_int_op(90, ==, evbuffer_copyout_from(buf, &ptr, tmp, 90));
2766 tt_int_op(0, ==, memcmp(tmp, string+15, 90));
2770 tt_int_op(160, ==, evbuffer_copyout_from(buf, &ptr, tmp, 160));
2771 tt_int_op(0, ==, memcmp(tmp, string+15, 160));
2775 tt_int_op(206-15, ==, evbuffer_copyout_from(buf, &ptr, tmp, 999));
2776 tt_int_op(0, ==, memcmp(tmp, string+15, 206-15));
2779 tt_int_op(206, ==, evbuffer_get_length(buf));