| 110 | MockFileFormat() : FileFormat(/*default_fragment_scan_options=*/nullptr) {} |
| 111 | |
| 112 | Result<RecordBatchGenerator> ScanBatchesAsync( |
| 113 | const std::shared_ptr<ScanOptions>& options, |
| 114 | const std::shared_ptr<FileFragment>& file) const override { |
| 115 | auto sch = schema({field("i32", int32())}); |
| 116 | RecordBatchVector batches; |
| 117 | for (int i = 0; i < kNumBatches; i++) { |
| 118 | batches.push_back(ConstantArrayGenerator::Zeroes(kRowsPerBatch, sch)); |
| 119 | } |
| 120 | return MakeVectorGenerator(std::move(batches)); |
| 121 | } |
| 122 | |
| 123 | protected: |
| 124 | std::string type_name() const override { return "mock"; } |
nothing calls this directly
no test coverage detected