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

Method CheckCorrectCrc

cpp/src/parquet/reader_test.cc:810–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808 }
809
810 void CheckCorrectCrc(const std::string& file_path, bool page_checksum_verification) {
811 reader_props_.set_page_checksum_verification(page_checksum_verification);
812 {
813 // Exercise column readers
814 OpenExampleFile(file_path);
815 CheckReadBatches<Int32Type>(/*col_index=*/0, kDataPageValuesPerColumn);
816 CheckReadBatches<Int32Type>(/*col_index=*/1, kDataPageValuesPerColumn);
817 }
818 {
819 // Exercise page readers directly
820 OpenExampleFile(file_path);
821 for (auto& page_reader : page_readers_) {
822 EXPECT_NE(nullptr, page_reader->NextPage());
823 EXPECT_NE(nullptr, page_reader->NextPage());
824 EXPECT_EQ(nullptr, page_reader->NextPage());
825 }
826 }
827 }
828
829 void CheckCorrectDictCrc(const std::string& file_path,
830 bool page_checksum_verification) {

Callers

nothing calls this directly

Calls 1

NextPageMethod · 0.45

Tested by

no test coverage detected