Lines Matching refs:filledRanges
486 IncFsFilledRanges filledRanges; in TEST_F() local
487 EXPECT_EQ(0, IncFs_GetFilledRanges(fd.get(), IncFsSpan{}, &filledRanges)); in TEST_F()
488 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
489 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
491 EXPECT_EQ(0, IncFs_GetFilledRanges(fd.get(), bufferSpan, &filledRanges)); in TEST_F()
492 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
493 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
495 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 0, bufferSpan, &filledRanges)); in TEST_F()
496 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
497 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
499 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 1, bufferSpan, &filledRanges)); in TEST_F()
500 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
501 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
503 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 30, bufferSpan, &filledRanges)); in TEST_F()
504 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
505 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
520 EXPECT_EQ(0, IncFs_GetFilledRanges(fd.get(), bufferSpan, &filledRanges)); in TEST_F()
521 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
522 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
523 EXPECT_EQ(1, filledRanges.dataRanges[0].end); in TEST_F()
524 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
526 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 0, bufferSpan, &filledRanges)); in TEST_F()
527 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
528 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
529 EXPECT_EQ(1, filledRanges.dataRanges[0].end); in TEST_F()
530 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
532 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 1, bufferSpan, &filledRanges)); in TEST_F()
533 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
534 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
536 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 30, bufferSpan, &filledRanges)); in TEST_F()
537 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
538 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
546 EXPECT_EQ(0, IncFs_GetFilledRanges(fd.get(), bufferSpan, &filledRanges)); in TEST_F()
547 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
548 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
549 EXPECT_EQ(2, filledRanges.dataRanges[0].end); in TEST_F()
550 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
552 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 0, bufferSpan, &filledRanges)); in TEST_F()
553 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
554 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
555 EXPECT_EQ(2, filledRanges.dataRanges[0].end); in TEST_F()
556 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
558 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 1, bufferSpan, &filledRanges)); in TEST_F()
559 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
560 EXPECT_EQ(1, filledRanges.dataRanges[0].begin); in TEST_F()
561 EXPECT_EQ(2, filledRanges.dataRanges[0].end); in TEST_F()
562 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
564 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 30, bufferSpan, &filledRanges)); in TEST_F()
565 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
566 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
574 EXPECT_EQ(0, IncFs_GetFilledRanges(fd.get(), bufferSpan, &filledRanges)); in TEST_F()
575 ASSERT_EQ(2, filledRanges.dataRangesCount); in TEST_F()
576 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
577 EXPECT_EQ(2, filledRanges.dataRanges[0].end); in TEST_F()
578 EXPECT_EQ(3, filledRanges.dataRanges[1].begin); in TEST_F()
579 EXPECT_EQ(4, filledRanges.dataRanges[1].end); in TEST_F()
580 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
582 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 0, bufferSpan, &filledRanges)); in TEST_F()
583 ASSERT_EQ(2, filledRanges.dataRangesCount); in TEST_F()
584 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
585 EXPECT_EQ(2, filledRanges.dataRanges[0].end); in TEST_F()
586 EXPECT_EQ(3, filledRanges.dataRanges[1].begin); in TEST_F()
587 EXPECT_EQ(4, filledRanges.dataRanges[1].end); in TEST_F()
588 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
590 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 1, bufferSpan, &filledRanges)); in TEST_F()
591 ASSERT_EQ(2, filledRanges.dataRangesCount); in TEST_F()
592 EXPECT_EQ(1, filledRanges.dataRanges[0].begin); in TEST_F()
593 EXPECT_EQ(2, filledRanges.dataRanges[0].end); in TEST_F()
594 EXPECT_EQ(3, filledRanges.dataRanges[1].begin); in TEST_F()
595 EXPECT_EQ(4, filledRanges.dataRanges[1].end); in TEST_F()
596 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
598 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 2, bufferSpan, &filledRanges)); in TEST_F()
599 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
600 EXPECT_EQ(3, filledRanges.dataRanges[0].begin); in TEST_F()
601 EXPECT_EQ(4, filledRanges.dataRanges[0].end); in TEST_F()
602 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
604 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 30, bufferSpan, &filledRanges)); in TEST_F()
605 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
606 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
614 EXPECT_EQ(0, IncFs_GetFilledRanges(fd.get(), bufferSpan, &filledRanges)); in TEST_F()
615 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
616 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
617 EXPECT_EQ(4, filledRanges.dataRanges[0].end); in TEST_F()
618 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
620 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 0, bufferSpan, &filledRanges)); in TEST_F()
621 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
622 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
623 EXPECT_EQ(4, filledRanges.dataRanges[0].end); in TEST_F()
624 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
626 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 1, bufferSpan, &filledRanges)); in TEST_F()
627 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
628 EXPECT_EQ(1, filledRanges.dataRanges[0].begin); in TEST_F()
629 EXPECT_EQ(4, filledRanges.dataRanges[0].end); in TEST_F()
631 EXPECT_EQ(0, IncFs_GetFilledRangesStartingFrom(fd.get(), 30, bufferSpan, &filledRanges)); in TEST_F()
632 EXPECT_EQ(0, filledRanges.dataRangesCount); in TEST_F()
633 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
672 IncFsFilledRanges filledRanges; in TEST_F() local
673 EXPECT_EQ(-ERANGE, IncFs_GetFilledRanges(fd.get(), bufferSpan, &filledRanges)); in TEST_F()
674 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
675 EXPECT_EQ(0, filledRanges.dataRanges[0].begin); in TEST_F()
676 EXPECT_EQ(1, filledRanges.dataRanges[0].end); in TEST_F()
677 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
678 EXPECT_EQ(2, filledRanges.endIndex); in TEST_F()
681 IncFs_GetFilledRangesStartingFrom(fd.get(), filledRanges.endIndex, bufferSpan, in TEST_F()
682 &filledRanges)); in TEST_F()
683 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
684 EXPECT_EQ(2, filledRanges.dataRanges[0].begin); in TEST_F()
685 EXPECT_EQ(3, filledRanges.dataRanges[0].end); in TEST_F()
686 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
687 EXPECT_EQ(4, filledRanges.endIndex); in TEST_F()
690 IncFs_GetFilledRangesStartingFrom(fd.get(), filledRanges.endIndex, bufferSpan, in TEST_F()
691 &filledRanges)); in TEST_F()
692 ASSERT_EQ(1, filledRanges.dataRangesCount); in TEST_F()
693 EXPECT_EQ(4, filledRanges.dataRanges[0].begin); in TEST_F()
694 EXPECT_EQ(5, filledRanges.dataRanges[0].end); in TEST_F()
695 EXPECT_EQ(0, filledRanges.hashRangesCount); in TEST_F()
696 EXPECT_EQ(5, filledRanges.endIndex); in TEST_F()
709 IncFsFilledRanges filledRanges; in TEST_F() local
710 EXPECT_EQ(0, IncFs_GetFilledRanges(fd.get(), bufferSpan, &filledRanges)); in TEST_F()
711 ASSERT_EQ(3, filledRanges.dataRangesCount); in TEST_F()
713 EXPECT_EQ(lastPage, filledRanges.dataRanges[2].begin); in TEST_F()
714 EXPECT_EQ(lastPage + 1, filledRanges.dataRanges[2].end); in TEST_F()
715 EXPECT_EQ(2, filledRanges.hashRangesCount); in TEST_F()
716 EXPECT_EQ(0, filledRanges.hashRanges[0].begin); in TEST_F()
717 EXPECT_EQ(1, filledRanges.hashRanges[0].end); in TEST_F()
718 EXPECT_EQ(2, filledRanges.hashRanges[1].begin); in TEST_F()
719 EXPECT_EQ(3, filledRanges.hashRanges[1].end); in TEST_F()
720 EXPECT_EQ(sizeToPages(size) + 3, filledRanges.endIndex); in TEST_F()