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

Function TEST_F

cpp/src/arrow/field_ref_test.cc:411–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409// FieldPath
410
411TEST_F(TestFieldPath, Basics) {
412 auto f0 = field("alpha", int32());
413 auto f1 = field("beta", int32());
414 auto f2 = field("alpha", int32());
415 auto f3 = field("beta", int32());
416 Schema s({f0, f1, f2, f3});
417
418 // retrieving a field with single-element FieldPath is equivalent to Schema::field
419 for (int index = 0; index < s.num_fields(); ++index) {
420 ASSERT_OK_AND_EQ(s.field(index), FieldPath({index}).Get(s));
421 }
422}
423
424TEST_F(TestFieldPath, GetFromEmptyChunked) {
425 FieldVector fields = {

Callers

nothing calls this directly

Calls 15

FieldPathFunction · 0.85
struct_Function · 0.85
push_backMethod · 0.80
columnsMethod · 0.80
FindAllMethod · 0.80
ToDotPathMethod · 0.80
indicesMethod · 0.80
fieldFunction · 0.70
ASSERT_OK_AND_ASSIGNFunction · 0.70
MakeFunction · 0.70
schemaFunction · 0.70
FieldRefFunction · 0.70

Tested by

no test coverage detected