| 25 | #include "wrap/gtest-wrapper.h" |
| 26 | |
| 27 | TEST(TestFileMetadata, testRaw) { |
| 28 | const std::string pgm = findProgram("tools/src/orc-metadata"); |
| 29 | const std::string file = findExample("orc_split_elim.orc"); |
| 30 | const std::string expected = "Raw file tail: " + file + |
| 31 | "\n" |
| 32 | "postscript {\n" |
| 33 | " footer_length: 288\n" |
| 34 | " compression: NONE\n" |
| 35 | " version: 0\n" |
| 36 | " version: 12\n" |
| 37 | " metadata_length: 526\n" |
| 38 | " magic: \"ORC\"\n" |
| 39 | "}\n" |
| 40 | "footer {\n" |
| 41 | " header_length: 3\n" |
| 42 | " content_length: 245568\n" |
| 43 | " stripes {\n" |
| 44 | " offset: 3\n" |
| 45 | " index_length: 137\n" |
| 46 | " data_length: 45282\n" |
| 47 | " footer_length: 149\n" |
| 48 | " number_of_rows: 5000\n" |
| 49 | " }\n" |
| 50 | " stripes {\n" |
| 51 | " offset: 45571\n" |
| 52 | " index_length: 137\n" |
| 53 | " data_length: 45282\n" |
| 54 | " footer_length: 149\n" |
| 55 | " number_of_rows: 5000\n" |
| 56 | " }\n" |
| 57 | " stripes {\n" |
| 58 | " offset: 91139\n" |
| 59 | " index_length: 137\n" |
| 60 | " data_length: 45282\n" |
| 61 | " footer_length: 149\n" |
| 62 | " number_of_rows: 5000\n" |
| 63 | " }\n" |
| 64 | " stripes {\n" |
| 65 | " offset: 136707\n" |
| 66 | " index_length: 138\n" |
| 67 | " data_length: 45283\n" |
| 68 | " footer_length: 149\n" |
| 69 | " number_of_rows: 5000\n" |
| 70 | " }\n" |
| 71 | " stripes {\n" |
| 72 | " offset: 200000\n" |
| 73 | " index_length: 137\n" |
| 74 | " data_length: 45282\n" |
| 75 | " footer_length: 149\n" |
| 76 | " number_of_rows: 5000\n" |
| 77 | " }\n" |
| 78 | " types {\n" |
| 79 | " kind: STRUCT\n" |
| 80 | " subtypes: 1\n" |
| 81 | " subtypes: 2\n" |
| 82 | " subtypes: 3\n" |
| 83 | " subtypes: 4\n" |
| 84 | " subtypes: 5\n" |
nothing calls this directly
no test coverage detected