| 146 | } |
| 147 | |
| 148 | TEST_F(TestFileSystemDataset, Basic) { |
| 149 | MakeDataset({}); |
| 150 | AssertFragmentsAreFromPath(*dataset_->GetFragments(), {}); |
| 151 | |
| 152 | MakeDataset({fs::File("a"), fs::File("b"), fs::File("c")}); |
| 153 | AssertFragmentsAreFromPath(*dataset_->GetFragments(), {"a", "b", "c"}); |
| 154 | AssertFilesAre(dataset_, {"a", "b", "c"}); |
| 155 | |
| 156 | // Should not create fragment from directories. |
| 157 | MakeDataset({fs::Dir("A"), fs::Dir("A/B"), fs::File("A/a"), fs::File("A/B/b")}); |
| 158 | AssertFragmentsAreFromPath(*dataset_->GetFragments(), {"A/a", "A/B/b"}); |
| 159 | AssertFilesAre(dataset_, {"A/a", "A/B/b"}); |
| 160 | } |
| 161 | |
| 162 | TEST_F(TestFileSystemDataset, ReplaceSchema) { |
| 163 | auto schm = schema({field("i32", int32()), field("f64", float64())}); |
nothing calls this directly
no test coverage detected