Lines Matching refs:tt_int_op
269 tt_int_op(r, ==, 1);
280 tt_int_op(evbuffer_commit_space(evb, v, 1), ==, 0);
359 tt_int_op(evbuffer_get_length(src), ==, 9);
360 tt_int_op(evbuffer_get_length(dst), ==, 9);
373 tt_int_op(evbuffer_get_length(src), ==, 1);
374 tt_int_op(evbuffer_get_length(dst), ==, 17);
406 tt_int_op(evbuffer_get_length(src), ==, 6);
407 tt_int_op(evbuffer_get_length(dst), ==, 6);
420 tt_int_op(evbuffer_get_length(src), ==, 1);
421 tt_int_op(evbuffer_get_length(dst), ==, 11);
441 tt_int_op(evbuffer_get_length(buf), ==, 3);
447 tt_int_op(evbuffer_get_length(buf), ==, 0);
448 tt_int_op(evbuffer_pullup(buf, -1), ==, NULL);
473 tt_int_op(evbuffer_add_reference(buf1, "foo", 3, NULL, NULL), ==, 0);
474 tt_int_op(evbuffer_prepend(buf1, "", 0), ==, 0);
475 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 1), ==, 1);
476 tt_int_op(evbuffer_add(buf1, "bar", 3), ==, 0);
500 tt_int_op(evbuffer_add(buf1, "aaaaaa", 6), ==, 0);
507 tt_int_op(evbuffer_reserve_space(buf1, 971, iovecs, 2), ==, 2);
508 tt_int_op(iovecs[0].iov_len, >=, 1);
509 tt_int_op(iovecs[1].iov_len, >=, 1);
512 tt_int_op(evbuffer_commit_space(buf1, iovecs, 1), ==, 0);
517 tt_int_op(evbuffer_add(buf2, "cc", 2), ==, 0);
518 tt_int_op(evbuffer_prepend(buf2, "ddd", 3), ==, 0);
522 tt_int_op(evbuffer_prepend_buffer(buf2, buf1), ==, 0);
526 tt_int_op(evbuffer_add_buffer(buf1, buf2), ==, 0);
530 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 11), ==, 11);
564 tt_int_op(evbuffer_get_length(src), ==, 6);
565 tt_int_op(evbuffer_get_length(dst), ==, 6);
593 tt_int_op(evbuffer_get_length(src), ==, 3);
594 tt_int_op(evbuffer_get_length(dst), ==, 3);
617 tt_int_op(n, ==, 1);
618 tt_int_op(evbuffer_get_length(buf), ==, 0);
620 tt_int_op(v[0].iov_len, >=, 1024);
626 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1));
627 tt_int_op(evbuffer_get_length(buf), ==, 512);
633 tt_int_op(n, ==, 1);
635 tt_int_op(remaining, ==, v[0].iov_len);
638 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1));
639 tt_int_op(evbuffer_get_length(buf), ==, 520);
646 tt_int_op(n, ==, 2);
648 tt_int_op(remaining, ==, v[0].iov_len);
654 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 1));
655 tt_int_op(evbuffer_get_length(buf), ==, 521);
663 tt_int_op(n, ==, 2);
665 tt_int_op(remaining, ==, v[0].iov_len);
672 tt_int_op(0, ==, evbuffer_commit_space(buf, v, 2));
673 tt_int_op(evbuffer_get_length(buf), ==, 981);
679 tt_int_op(n, ==, 2);
680 tt_int_op(v[0].iov_len, ==, 921);
681 tt_int_op(v[1].iov_len, ==, 60);
685 tt_int_op(cp[i], ==, 'X');
687 tt_int_op(cp[i], ==, 'Y');
689 tt_int_op(cp[i], ==, 'Z');
691 tt_int_op(cp[i], ==, 'W');
695 tt_int_op(cp[i], ==, 'x');
717 tt_int_op(n, ==, 1);
725 tt_int_op(n, ==, 0);
729 tt_int_op(n, ==, 0);
731 tt_int_op(n, ==, 1);
740 tt_int_op(n, ==, 2);
742 tt_int_op(sz, >=, v[0].iov_len+128);
754 tt_int_op(n, ==, 3);
764 tt_int_op(n, ==, 2);
767 tt_int_op(n, ==, 1);
782 tt_int_op(evbuffer_reserve_space(buf, 1<<12, v, 2), ==, 2);
785 tt_int_op(evbuffer_commit_space(buf, v, 1), ==, 0);
815 tt_int_op(avec = evbuffer_reserve_space(buf, 1<<12, vec, nvec), >=, 1);
818 tt_int_op(evbuffer_commit_space(buf, vec, avec), ==, 0);
822 tt_int_op(evbuffer_reserve_space(buf, 1<<13, vec, nvec), >=, 1);
843 tt_int_op(evbuffer_expand(buf, 20000), ==, 0);
859 tt_int_op(evbuffer_expand(buf, 1024), ==, 0);
982 tt_int_op(len, ==, strlen(data));
1021 tt_int_op(reference_cb_called, ==, 1);
1284 tt_int_op(addfile_test_total_written, ==, expect_len);
1285 tt_int_op(addfile_test_total_read, ==, expect_len);
1340 tt_int_op(fd, >=, 0);
1357 tt_int_op(file_segment_cleanup_cb_called_count, ==, 0);
1361 tt_int_op(file_segment_cleanup_cb_called_count, ==, 0);
1365 tt_int_op(file_segment_cleanup_cb_called_count, ==, 1);
1535 tt_int_op(evbuffer_get_length(evb), ==, 0);
1644 tt_int_op(ptr1.pos, ==, 8);
1645 tt_int_op(eol_len, ==, 2);
1649 tt_int_op(ptr2.pos, ==, 8);
1650 tt_int_op(eol_len, ==, 2);
1655 tt_int_op(ptr2.pos, ==, 9);
1656 tt_int_op(eol_len, ==, 1);
1660 tt_int_op(ptr2.pos, ==, 10);
1661 tt_int_op(eol_len, ==, 2);
1665 tt_int_op(ptr1.pos, ==, 9);
1666 tt_int_op(eol_len, ==, 1);
1670 tt_int_op(ptr2.pos, ==, 9);
1671 tt_int_op(eol_len, ==, 1);
1676 tt_int_op(ptr2.pos, ==, 11);
1677 tt_int_op(eol_len, ==, 1);
1682 tt_int_op(ptr2.pos, ==, -1);
1683 tt_int_op(eol_len, ==, 0);
1789 tt_int_op(evbuffer_get_length(buf), ==, 0);
1816 tt_int_op(evbuffer_get_length(buf), ==, 12000);
1851 tt_int_op(pos.pos, ==, -1);
1854 tt_int_op(pos.pos, ==, -1);
1857 tt_int_op(pos.pos, ==, -1);
1860 tt_int_op(pos.pos, ==, -1);
1873 tt_int_op(pos.pos, ==, 11);
1875 tt_int_op(pos.pos, ==, -1);
1879 tt_int_op(pos.pos, ==, 7);
1881 tt_int_op(pos.pos, ==, 8);
1883 tt_int_op(pos.pos, ==, -1);
1887 tt_int_op(pos.pos, ==, 5);
1891 tt_int_op(pos.pos, ==, 10);
1897 tt_int_op(pos.pos, ==, 5);
1899 tt_int_op(pos.pos, ==, 5);
1901 tt_int_op(pos.pos, ==, -1);
1903 tt_int_op(pos.pos, ==, -1);
1909 tt_int_op(pos.pos, ==, 11);
1912 tt_int_op(pos.pos, ==, 11);
1915 tt_int_op(pos.pos, ==, -1);
1918 tt_int_op(pos.pos, ==, -1);
1993 tt_int_op(evbuffer_setcb(buf, self_draining_callback, NULL), ==, 0);
1998 tt_int_op(evbuffer_setcb(buf, NULL, NULL), ==, 0);
2027 tt_int_op(evbuffer_setcb(buf, self_draining_callback, NULL), ==, -1);
2070 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2);
2073 tt_int_op(evbuffer_remove(buf1, tmp, 6), ==, 6);
2074 tt_int_op(memcmp(tmp, "If you", 6), ==, 0);
2075 tt_int_op(evbuffer_remove(buf1, tmp, 5), ==, 5);
2076 tt_int_op(memcmp(tmp, " have", 5), ==, 0);
2079 tt_int_op(evbuffer_prepend(buf1, "I have ", 7), ==, 0);
2080 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0);
2086 tt_int_op(ref_done_cb_called_count, ==, 0);
2088 tt_int_op(tmp[0], ==, 'm');
2092 tt_int_op(ref_done_cb_called_count, ==, 1);
2099 tt_int_op(ref_done_cb_called_count, ==, 1);
2103 tt_int_op(ref_done_cb_called_count, ==, 1);
2105 tt_int_op(memcmp("I ought to write", tmp, 16), ==, 0);
2107 tt_int_op(ref_done_cb_called_count, ==, 2);
2119 tt_int_op(ref_done_cb_called_count, ==, 3);
2146 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2);
2151 tt_int_op(evbuffer_add_buffer_reference(buf2, buf1), ==, 0);
2153 tt_int_op(evbuffer_add_buffer_reference(buf2, buf2), ==, -1);
2154 tt_int_op(evbuffer_add_buffer_reference(buf1, buf2), ==, -1);
2157 tt_int_op(evbuffer_get_length(buf1), ==, evbuffer_get_length(buf1));
2160 tt_int_op(evbuffer_remove(buf1, tmp, 6), ==, 6);
2161 tt_int_op(memcmp(tmp, "If you", 6), ==, 0);
2162 tt_int_op(evbuffer_remove(buf1, tmp, 5), ==, 5);
2163 tt_int_op(memcmp(tmp, " have", 5), ==, 0);
2166 tt_int_op(evbuffer_prepend(buf1, "I have ", 7), ==, 0);
2167 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0);
2171 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6);
2172 tt_int_op(memcmp(tmp, "If you", 6), ==, 0);
2173 tt_int_op(evbuffer_remove(buf2, tmp, 5), ==, 5);
2174 tt_int_op(memcmp(tmp, " have", 5), ==, 0);
2177 tt_int_op(evbuffer_prepend(buf2, "I have ", 7), ==, 0);
2178 tt_int_op(memcmp(chunk1, "If you", 6), ==, 0);
2185 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6);
2186 tt_int_op(memcmp(tmp, "I have", 6), ==, 0);
2188 tt_int_op(evbuffer_remove(buf2, tmp, 6), ==, 6);
2189 tt_int_op(memcmp(tmp, " foun", 6), ==, 0);
2214 tt_int_op(evbuffer_get_length(buf1), ==, len1+len2+2);
2219 tt_int_op(evbuffer_add_buffer_reference(buf2, buf1), ==, 0);
2220 tt_int_op(evbuffer_get_length(buf2), ==, len1+len2+2);
2221 tt_int_op(evbuffer_drain(buf1, evbuffer_get_length(buf1)), ==, 0);
2222 tt_int_op(evbuffer_get_length(buf2), ==, len1+len2+2);
2223 tt_int_op(evbuffer_drain(buf2, evbuffer_get_length(buf2)), ==, 0);
2239 tt_int_op(cbinfo->orig_size, ==, 3);
2240 tt_int_op(cbinfo->n_added, ==, 8096);
2241 tt_int_op(cbinfo->n_deleted, ==, 0);
2275 tt_int_op(n, >=, 0);
2294 tt_int_op(n, >=, 0);
2391 tt_int_op(evbuffer_peek(buf, -1, &ptr, NULL, 0), ==, 2);
2393 tt_int_op(evbuffer_peek(buf, -1, &ptr, v, 2), ==, 2);
2396 tt_int_op(evbuffer_peek(buf, -1, &ptr, NULL, 0), ==, 2);
2397 tt_int_op(evbuffer_peek(buf, -1, &ptr, v, 2), ==, 2);
2398 tt_int_op(evbuffer_peek(buf, 2, &ptr, NULL, 0), ==, 1);
2399 tt_int_op(evbuffer_peek(buf, 2, &ptr, v, 2), ==, 1);
2400 tt_int_op(evbuffer_peek(buf, 3, &ptr, NULL, 0), ==, 2);
2401 tt_int_op(evbuffer_peek(buf, 3, &ptr, v, 2), ==, 2);
2419 tt_int_op((v)->iov_len, ==, strlen(s)); \
2432 tt_int_op(i, ==, 16);
2436 tt_int_op(i, ==, 16); /* we used only 16 chunks. */
2445 tt_int_op(i, ==, 1);
2452 tt_int_op(i, ==, 2);
2460 tt_int_op(i, ==, 5);
2466 tt_int_op(i, ==, 3);
2473 tt_int_op(i, ==, 16); /* we used only 16 chunks. */
2483 tt_int_op(i, ==, 0);
2487 tt_int_op(i, ==, 0);
2494 tt_int_op(i, ==, 3);
2503 tt_int_op(i, ==, 2);
2511 tt_int_op(i, ==, 0);
2566 tt_int_op((a), ==, (startcase)); \
2568 tt_int_op((a), ==, (endcase)); \
2608 tt_int_op(orig_length, ==, evbuffer_get_length(buf));
2643 tt_int_op(orig_length, ==, evbuffer_get_length(buf));
2689 tt_int_op(returned_length, ==, evbuffer_get_length(buf));
2690 tt_int_op(evbuffer_get_length(buf), ==, expected_length);
2725 tt_int_op(strlen(string), ==, 206);
2732 tt_int_op(206, ==, evbuffer_get_length(buf));
2737 tt_int_op(10, ==, evbuffer_copyout(buf, tmp, 10));
2738 tt_int_op(0, ==, memcmp(tmp, "Still they", 10));
2742 tt_int_op(100, ==, evbuffer_copyout(buf, tmp, 100));
2743 tt_int_op(0, ==, memcmp(tmp, string, 100));
2747 tt_int_op(206, ==, evbuffer_copyout(buf, tmp, 230));
2748 tt_int_op(0, ==, memcmp(tmp, string, 206));
2751 tt_int_op(206, ==, evbuffer_get_length(buf));
2757 tt_int_op(10, ==, evbuffer_copyout_from(buf, &ptr, tmp, 10));
2758 tt_int_op(0, ==, memcmp(tmp, "mish to an", 10));
2762 tt_int_op(65, ==, evbuffer_copyout_from(buf, &ptr, tmp, 65));
2763 tt_int_op(0, ==, memcmp(tmp, string+15, 65));
2767 tt_int_op(90, ==, evbuffer_copyout_from(buf, &ptr, tmp, 90));
2768 tt_int_op(0, ==, memcmp(tmp, string+15, 90));
2772 tt_int_op(160, ==, evbuffer_copyout_from(buf, &ptr, tmp, 160));
2773 tt_int_op(0, ==, memcmp(tmp, string+15, 160));
2777 tt_int_op(206-15, ==, evbuffer_copyout_from(buf, &ptr, tmp, 999));
2778 tt_int_op(0, ==, memcmp(tmp, string+15, 206-15));
2781 tt_int_op(206, ==, evbuffer_get_length(buf));