expect 44 tests/test_bcj_exact_size.c expect(lzma_stream_buffer_encode(filters, LZMA_CHECK_CRC32, NULL, expect 55 tests/test_bcj_exact_size.c expect(lzma_stream_decoder(&strm, 10 << 20, 0) == LZMA_OK); expect 66 tests/test_bcj_exact_size.c expect(strm.total_in == compressed_size); expect 67 tests/test_bcj_exact_size.c expect(strm.total_out == sizeof(in)); expect 71 tests/test_bcj_exact_size.c expect(ret == LZMA_OK); expect 97 tests/test_bcj_exact_size.c expect(lzma_stream_buffer_decode(&memlimit, 0, NULL, expect 100 tests/test_bcj_exact_size.c expect(in_pos == sizeof(empty_bcj_lzma2)); expect 101 tests/test_bcj_exact_size.c expect(out_pos == 0); expect 83 tests/test_block_header.c expect(lzma_block_header_encode(&known_options, buf) == LZMA_OK); expect 92 tests/test_block_header.c expect(lzma_block_header_decode(&decoded_options, NULL, buf) expect 95 tests/test_block_header.c expect(known_options.compressed_size expect 97 tests/test_block_header.c expect(known_options.uncompressed_size expect 102 tests/test_block_header.c expect(known_options.filters[i].id == filters[i].id); expect 119 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_PROG_ERROR); expect 122 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_PROG_ERROR); expect 125 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_PROG_ERROR); expect 128 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_OK); expect 131 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_OK); expect 134 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_OK); expect 137 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_PROG_ERROR); expect 143 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_OK); expect 147 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_OK); expect 150 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_PROG_ERROR); expect 164 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_OK); expect 169 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_OK); expect 190 tests/test_block_header.c expect(lzma_block_header_size(&known_options) == LZMA_OK); expect 192 tests/test_block_header.c expect(lzma_block_header_encode(&known_options, buf) == LZMA_OK); expect 201 tests/test_block_header.c expect(lzma_block_header_decode(&decoded_options, NULL, buf) expect 207 tests/test_block_header.c expect(lzma_block_header_decode(&decoded_options, NULL, buf) expect 216 tests/test_block_header.c expect(lzma_block_header_decode(&decoded_options, NULL, buf) expect 224 tests/test_block_header.c expect(lzma_block_header_decode(&decoded_options, NULL, buf) expect 82 tests/test_filter_flags.c expect(!encode(2)); expect 83 tests/test_filter_flags.c expect(!decode(2)); expect 84 tests/test_filter_flags.c expect(decoded_flags.options == NULL); expect 90 tests/test_filter_flags.c expect(!encode(2)); expect 91 tests/test_filter_flags.c expect(!decode(2)); expect 92 tests/test_filter_flags.c expect(decoded_flags.options == NULL); expect 97 tests/test_filter_flags.c expect(!encode(6)); expect 98 tests/test_filter_flags.c expect(!decode(6)); expect 99 tests/test_filter_flags.c expect(decoded_flags.options != NULL); expect 102 tests/test_filter_flags.c expect(decoded->start_offset == options.start_offset); expect 116 tests/test_filter_flags.c expect(encode(99)); expect 124 tests/test_filter_flags.c expect(encode(99)); expect 128 tests/test_filter_flags.c expect(!encode(3)); expect 129 tests/test_filter_flags.c expect(!decode(3)); expect 130 tests/test_filter_flags.c expect(((lzma_options_delta *)(decoded_flags.options))->dist expect 137 tests/test_filter_flags.c expect(!encode(3)); expect 138 tests/test_filter_flags.c expect(!decode(3)); expect 139 tests/test_filter_flags.c expect(((lzma_options_delta *)(decoded_flags.options))->dist expect 146 tests/test_filter_flags.c expect(encode(99)); expect 25 tests/test_index.c expect(i != NULL); expect 34 tests/test_index.c expect(i != NULL); expect 35 tests/test_index.c expect(lzma_index_append(i, NULL, 101, 555) == LZMA_OK); expect 36 tests/test_index.c expect(lzma_index_append(i, NULL, 602, 777) == LZMA_OK); expect 37 tests/test_index.c expect(lzma_index_append(i, NULL, 804, 999) == LZMA_OK); expect 46 tests/test_index.c expect(i != NULL); expect 56 tests/test_index.c expect(lzma_index_append(i, NULL, t, n) == LZMA_OK); expect 61 tests/test_index.c expect(lzma_index_block_count(i) == BIG_COUNT); expect 62 tests/test_index.c expect(lzma_index_total_size(i) == total_size); expect 63 tests/test_index.c expect(lzma_index_uncompressed_size(i) == uncompressed_size); expect 64 tests/test_index.c expect(lzma_index_total_size(i) + lzma_index_size(i) expect 132 tests/test_index.c expect(a && b && c); expect 134 tests/test_index.c expect(is_equal(a, a)); expect 135 tests/test_index.c expect(is_equal(b, b)); expect 136 tests/test_index.c expect(is_equal(c, c)); expect 138 tests/test_index.c expect(!is_equal(a, b)); expect 139 tests/test_index.c expect(!is_equal(a, c)); expect 140 tests/test_index.c expect(!is_equal(b, c)); expect 154 tests/test_index.c expect(lzma_index_append(i, NULL, LZMA_VLI_MAX - 5, 1234) expect 167 tests/test_index.c expect(d != NULL); expect 168 tests/test_index.c expect(is_equal(i, d)); expect 193 tests/test_index.c expect(r.block.compressed_file_offset expect 195 tests/test_index.c expect(r.block.uncompressed_file_offset expect 202 tests/test_index.c expect(lzma_index_total_size(i) == total_size); expect 203 tests/test_index.c expect(lzma_index_uncompressed_size(i) == uncompressed_size); expect 204 tests/test_index.c expect(lzma_index_block_count(i) == count); expect 216 tests/test_index.c expect(buf != NULL); expect 220 tests/test_index.c expect(lzma_index_encoder(&strm, i) == LZMA_OK); expect 227 tests/test_index.c expect(lzma_index_decoder(&strm, &d, MEMLIMIT) == LZMA_OK); expect 228 tests/test_index.c expect(d == NULL); expect 231 tests/test_index.c expect(is_equal(i, d)); expect 238 tests/test_index.c expect(h != NULL); expect 242 tests/test_index.c expect(lzma_index_hash_append(h, r.block.unpadded_size, expect 246 tests/test_index.c expect(lzma_index_hash_decode(h, buf, &pos, pos + 1) expect 248 tests/test_index.c expect(lzma_index_hash_decode(h, buf, &pos, pos + 1) expect 255 tests/test_index.c expect(lzma_index_buffer_encode(i, buf, &buf_pos, index_size) expect 257 tests/test_index.c expect(buf_pos == 1); expect 260 tests/test_index.c expect(buf_pos == index_size + 1); expect 265 tests/test_index.c expect(lzma_index_buffer_decode(&d, &memlimit, NULL, buf, &buf_pos, expect 267 tests/test_index.c expect(buf_pos == 1); expect 268 tests/test_index.c expect(d == NULL); expect 272 tests/test_index.c expect(buf_pos == index_size + 1); expect 273 tests/test_index.c expect(is_equal(i, d)); expect 299 tests/test_index.c expect(lzma_index_cat(a, b, NULL) == LZMA_OK); expect 300 tests/test_index.c expect(lzma_index_block_count(a) == 0); expect 301 tests/test_index.c expect(lzma_index_stream_size(a) == 2 * LZMA_STREAM_HEADER_SIZE + 8); expect 302 tests/test_index.c expect(lzma_index_file_size(a) expect 305 tests/test_index.c expect(lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK)); expect 308 tests/test_index.c expect(lzma_index_cat(a, b, NULL) == LZMA_OK); expect 309 tests/test_index.c expect(lzma_index_block_count(a) == 0); expect 310 tests/test_index.c expect(lzma_index_stream_size(a) == 2 * LZMA_STREAM_HEADER_SIZE + 8); expect 311 tests/test_index.c expect(lzma_index_file_size(a) expect 316 tests/test_index.c expect(lzma_index_stream_padding(b, 4) == LZMA_OK); expect 317 tests/test_index.c expect(lzma_index_cat(b, c, NULL) == LZMA_OK); expect 318 tests/test_index.c expect(lzma_index_block_count(b) == 0); expect 319 tests/test_index.c expect(lzma_index_stream_size(b) == 2 * LZMA_STREAM_HEADER_SIZE + 8); expect 320 tests/test_index.c expect(lzma_index_file_size(b) expect 323 tests/test_index.c expect(lzma_index_stream_padding(a, 8) == LZMA_OK); expect 324 tests/test_index.c expect(lzma_index_cat(a, b, NULL) == LZMA_OK); expect 325 tests/test_index.c expect(lzma_index_block_count(a) == 0); expect 326 tests/test_index.c expect(lzma_index_stream_size(a) == 2 * LZMA_STREAM_HEADER_SIZE + 8); expect 327 tests/test_index.c expect(lzma_index_file_size(a) expect 330 tests/test_index.c expect(lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK)); expect 332 tests/test_index.c expect(lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK)); expect 340 tests/test_index.c expect(!lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK) expect 344 tests/test_index.c expect(lzma_index_stream_padding(a, 4) == LZMA_OK); expect 345 tests/test_index.c expect(lzma_index_cat(a, b, NULL) == LZMA_OK); expect 346 tests/test_index.c expect(lzma_index_file_size(a) == stream_size * 2 + 4); expect 347 tests/test_index.c expect(lzma_index_stream_size(a) > stream_size); expect 348 tests/test_index.c expect(lzma_index_stream_size(a) < stream_size * 2); expect 350 tests/test_index.c expect(!lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK) expect 355 tests/test_index.c expect(!lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK) expect 360 tests/test_index.c expect(lzma_index_stream_padding(b, 8) == LZMA_OK); expect 361 tests/test_index.c expect(lzma_index_cat(b, c, NULL) == LZMA_OK); expect 362 tests/test_index.c expect(lzma_index_stream_padding(a, 12) == LZMA_OK); expect 363 tests/test_index.c expect(lzma_index_cat(a, b, NULL) == LZMA_OK); expect 364 tests/test_index.c expect(lzma_index_file_size(a) == stream_size * 4 + 4 + 8 + 12); expect 366 tests/test_index.c expect(lzma_index_block_count(a) == SMALL_COUNT * 4); expect 368 tests/test_index.c expect(!lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK) expect 373 tests/test_index.c expect(!lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK) expect 381 tests/test_index.c expect(lzma_index_stream_padding(a, 4) == LZMA_OK); expect 382 tests/test_index.c expect(lzma_index_cat(a, b, NULL) == LZMA_OK); expect 385 tests/test_index.c expect(!lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK) expect 394 tests/test_index.c expect(lzma_index_stream_padding(a, 4) == LZMA_OK); expect 395 tests/test_index.c expect(lzma_index_cat(a, b, NULL) == LZMA_OK); expect 396 tests/test_index.c expect(lzma_index_file_size(a) == stream_size * 2 + 4); expect 397 tests/test_index.c expect(lzma_index_stream_size(a) > stream_size); expect 398 tests/test_index.c expect(lzma_index_stream_size(a) < stream_size * 2); expect 402 tests/test_index.c expect(lzma_index_stream_padding(b, 8) == LZMA_OK); expect 403 tests/test_index.c expect(lzma_index_cat(b, c, NULL) == LZMA_OK); expect 404 tests/test_index.c expect(lzma_index_stream_padding(a, 12) == LZMA_OK); expect 405 tests/test_index.c expect(lzma_index_cat(a, b, NULL) == LZMA_OK); expect 406 tests/test_index.c expect(lzma_index_file_size(a) == stream_size * 4 + 4 + 8 + 12); expect 410 tests/test_index.c expect(!lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK) expect 421 tests/test_index.c expect(i != NULL); expect 426 tests/test_index.c expect(lzma_index_iter_locate(&r, 0)); expect 427 tests/test_index.c expect(lzma_index_iter_locate(&r, 555)); expect 431 tests/test_index.c expect(lzma_index_append(i, NULL, 16, 0) == LZMA_OK); expect 432 tests/test_index.c expect(lzma_index_iter_locate(&r, 0)); expect 435 tests/test_index.c expect(lzma_index_append(i, NULL, 32, 5) == LZMA_OK); expect 436 tests/test_index.c expect(!lzma_index_iter_locate(&r, 0)); expect 437 tests/test_index.c expect(r.block.total_size == 32); expect 438 tests/test_index.c expect(r.block.uncompressed_size == 5); expect 439 tests/test_index.c expect(r.block.compressed_file_offset expect 441 tests/test_index.c expect(r.block.uncompressed_file_offset == 0); expect 444 tests/test_index.c expect(lzma_index_iter_locate(&r, 5)); expect 447 tests/test_index.c expect(lzma_index_append(i, NULL, 40, 11) == LZMA_OK); expect 449 tests/test_index.c expect(!lzma_index_iter_locate(&r, 0)); expect 450 tests/test_index.c expect(r.block.total_size == 32); expect 451 tests/test_index.c expect(r.block.uncompressed_size == 5); expect 452 tests/test_index.c expect(r.block.compressed_file_offset expect 454 tests/test_index.c expect(r.block.uncompressed_file_offset == 0); expect 456 tests/test_index.c expect(!lzma_index_iter_next(&r, LZMA_INDEX_ITER_BLOCK)); expect 457 tests/test_index.c expect(r.block.total_size == 40); expect 458 tests/test_index.c expect(r.block.uncompressed_size == 11); expect 459 tests/test_index.c expect(r.block.compressed_file_offset expect 461 tests/test_index.c expect(r.block.uncompressed_file_offset == 5); expect 463 tests/test_index.c expect(!lzma_index_iter_locate(&r, 2)); expect 464 tests/test_index.c expect(r.block.total_size == 32); expect 465 tests/test_index.c expect(r.block.uncompressed_size == 5); expect 466 tests/test_index.c expect(r.block.compressed_file_offset expect 468 tests/test_index.c expect(r.block.uncompressed_file_offset == 0); expect 470 tests/test_index.c expect(!lzma_index_iter_locate(&r, 5)); expect 471 tests/test_index.c expect(r.block.total_size == 40); expect 472 tests/test_index.c expect(r.block.uncompressed_size == 11); expect 473 tests/test_index.c expect(r.block.compressed_file_offset expect 475 tests/test_index.c expect(r.block.uncompressed_file_offset == 5); expect 477 tests/test_index.c expect(!lzma_index_iter_locate(&r, 5 + 11 - 1)); expect 478 tests/test_index.c expect(r.block.total_size == 40); expect 479 tests/test_index.c expect(r.block.uncompressed_size == 11); expect 480 tests/test_index.c expect(r.block.compressed_file_offset expect 482 tests/test_index.c expect(r.block.uncompressed_file_offset == 5); expect 484 tests/test_index.c expect(lzma_index_iter_locate(&r, 5 + 11)); expect 485 tests/test_index.c expect(lzma_index_iter_locate(&r, 5 + 15)); expect 490 tests/test_index.c expect(i != NULL); expect 494 tests/test_index.c expect(lzma_index_append(i, NULL, n + 8, n) == LZMA_OK); expect 496 tests/test_index.c expect(lzma_index_block_count(i) == 5555); expect 499 tests/test_index.c expect(!lzma_index_iter_locate(&r, 0)); expect 500 tests/test_index.c expect(r.block.total_size == 4 + 8); expect 501 tests/test_index.c expect(r.block.uncompressed_size == 4); expect 502 tests/test_index.c expect(r.block.compressed_file_offset == LZMA_STREAM_HEADER_SIZE); expect 503 tests/test_index.c expect(r.block.uncompressed_file_offset == 0); expect 505 tests/test_index.c expect(!lzma_index_iter_locate(&r, 3)); expect 506 tests/test_index.c expect(r.block.total_size == 4 + 8); expect 507 tests/test_index.c expect(r.block.uncompressed_size == 4); expect 508 tests/test_index.c expect(r.block.compressed_file_offset == LZMA_STREAM_HEADER_SIZE); expect 509 tests/test_index.c expect(r.block.uncompressed_file_offset == 0); expect 512 tests/test_index.c expect(!lzma_index_iter_locate(&r, 4)); expect 513 tests/test_index.c expect(r.block.total_size == 2 * 4 + 8); expect 514 tests/test_index.c expect(r.block.uncompressed_size == 2 * 4); expect 515 tests/test_index.c expect(r.block.compressed_file_offset expect 517 tests/test_index.c expect(r.block.uncompressed_file_offset == 4); expect 520 tests/test_index.c expect(!lzma_index_iter_locate( expect 522 tests/test_index.c expect(r.block.total_size == 4 * 5555 + 8); expect 523 tests/test_index.c expect(r.block.uncompressed_size == 4 * 5555); expect 524 tests/test_index.c expect(r.block.compressed_file_offset == lzma_index_total_size(i) expect 526 tests/test_index.c expect(r.block.uncompressed_file_offset expect 543 tests/test_index.c expect(!lzma_index_iter_locate(&r, ubase + n * 4)); expect 545 tests/test_index.c expect(r.block.compressed_file_offset == tbase + n * 4 + 8 expect 547 tests/test_index.c expect(r.block.uncompressed_file_offset == ubase + n * 4); expect 553 tests/test_index.c expect(r.block.total_size == n * 4 + 8); expect 554 tests/test_index.c expect(r.block.uncompressed_size == n * 4); expect 559 tests/test_index.c expect(!lzma_index_iter_locate(&r, ubase + (n - 1) * 4)); expect 561 tests/test_index.c expect(r.block.total_size == n * 4 + 8); expect 562 tests/test_index.c expect(r.block.uncompressed_size == n * 4); expect 568 tests/test_index.c expect(r.block.compressed_file_offset == tbase + n * 4 + 8 expect 570 tests/test_index.c expect(r.block.uncompressed_file_offset == ubase + n * 4); expect 576 tests/test_index.c expect(i != NULL); expect 579 tests/test_index.c expect(lzma_index_append(i, NULL, 8, 0) == LZMA_OK); expect 580 tests/test_index.c expect(lzma_index_append(i, NULL, 16, 1) == LZMA_OK); expect 581 tests/test_index.c expect(!lzma_index_iter_locate(&r, 0)); expect 582 tests/test_index.c expect(r.block.total_size == 16); expect 583 tests/test_index.c expect(r.block.uncompressed_size == 1); expect 584 tests/test_index.c expect(r.block.compressed_file_offset expect 586 tests/test_index.c expect(r.block.uncompressed_file_offset == 0); expect 597 tests/test_index.c expect(buf != NULL); expect 601 tests/test_index.c expect(lzma_index_append(i, NULL, 0, 1) == LZMA_PROG_ERROR); expect 606 tests/test_index.c expect(lzma_index_encoder(&strm, i) == LZMA_OK); expect 613 tests/test_index.c expect(lzma_index_decoder(&strm, &i, MEMLIMIT) == LZMA_OK); expect 619 tests/test_index.c expect(lzma_index_decoder(&strm, &i, MEMLIMIT) == LZMA_OK); expect 625 tests/test_index.c expect(lzma_index_decoder(&strm, &i, MEMLIMIT) == LZMA_OK); expect 54 tests/test_stream_flags.c expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); expect 78 tests/test_stream_flags.c expect(lzma_stream_footer_encode(&known_flags, buffer) == LZMA_OK); expect 89 tests/test_stream_flags.c expect(lzma_stream_header_encode(&known_flags, buffer) expect 92 tests/test_stream_flags.c expect(lzma_stream_footer_encode(&known_flags, buffer) expect 97 tests/test_stream_flags.c expect(lzma_stream_header_encode(&known_flags, buffer) expect 100 tests/test_stream_flags.c expect(lzma_stream_footer_encode(&known_flags, buffer) expect 107 tests/test_stream_flags.c expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); expect 109 tests/test_stream_flags.c expect(lzma_stream_footer_encode(&known_flags, buffer) expect 114 tests/test_stream_flags.c expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); expect 116 tests/test_stream_flags.c expect(lzma_stream_footer_encode(&known_flags, buffer) expect 127 tests/test_stream_flags.c expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); expect 146 tests/test_stream_flags.c expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); expect 151 tests/test_stream_flags.c expect(lzma_stream_footer_encode(&known_flags, buffer) == LZMA_OK); expect 158 tests/test_stream_flags.c expect(lzma_stream_footer_encode(&known_flags, buffer) == LZMA_OK); expect 27 tests/tests.h #define succeed(test) expect(!(test)) expect 29 tests/tests.h #define fail(test) expect(test)