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

Function TEST_F

cpp/src/arrow/dataset/file_test.cc:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

AssertFilesAreFunction · 0.85
DirFunction · 0.85
AssertDatasetHasSchemaFunction · 0.85
equalFunction · 0.85
field_refFunction · 0.85
GetFragmentsFunction · 0.85
greaterFunction · 0.85
and_Function · 0.85
WriteFunction · 0.85
RaisesFunction · 0.85

Tested by

no test coverage detected