MCPcopy Create free account
hub / github.com/apache/arrow / CheckCorrectCrc

Method CheckCorrectCrc

cpp/src/parquet/reader_test.cc:795–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793 }
794
795 void CheckCorrectCrc(const std::string& file_path, bool page_checksum_verification) {
796 reader_props_.set_page_checksum_verification(page_checksum_verification);
797 {
798 // Exercise column readers
799 OpenExampleFile(file_path);
800 CheckReadBatches<Int32Type>(/*col_index=*/0, kDataPageValuesPerColumn);
801 CheckReadBatches<Int32Type>(/*col_index=*/1, kDataPageValuesPerColumn);
802 }
803 {
804 // Exercise page readers directly
805 OpenExampleFile(file_path);
806 for (auto& page_reader : page_readers_) {
807 EXPECT_NE(nullptr, page_reader->NextPage());
808 EXPECT_NE(nullptr, page_reader->NextPage());
809 EXPECT_EQ(nullptr, page_reader->NextPage());
810 }
811 }
812 }
813
814 void CheckCorrectDictCrc(const std::string& file_path,
815 bool page_checksum_verification) {

Callers

nothing calls this directly

Calls 1

NextPageMethod · 0.45

Tested by

no test coverage detected