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

Function TEST

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

Source from the content-addressed store, hash-verified

148}
149
150TEST(TestSchemaFromTuple, PrimitiveTypesVector) {
151 Schema expected_schema(
152 {field("column1", int8(), false), field("column2", int16(), false),
153 field("column3", int32(), false), field("column4", int64(), false),
154 field("column5", uint8(), false), field("column6", uint16(), false),
155 field("column7", uint32(), false), field("column8", uint64(), false),
156 field("column9", boolean(), false), field("column10", utf8(), false)});
157
158 std::shared_ptr<Schema> schema = SchemaFromTuple<primitive_types_tuple>::MakeSchema(
159 std::vector<std::string>({"column1", "column2", "column3", "column4", "column5",
160 "column6", "column7", "column8", "column9", "column10"}));
161 ASSERT_TRUE(expected_schema.Equals(*schema));
162}
163
164TEST(TestSchemaFromTuple, PrimitiveTypesTuple) {
165 Schema expected_schema(

Callers 1

TEST_FFunction · 0.70

Calls 15

MakeSchemaFunction · 0.85
listFunction · 0.85
TableFromTupleRangeFunction · 0.85
default_memory_poolFunction · 0.85
ArrayFromJSONFunction · 0.85
fixed_size_listFunction · 0.85
AssertTablesEqualFunction · 0.85
TupleRangeFromTableFunction · 0.85
tieMethod · 0.80
emplace_backMethod · 0.80
allocateMethod · 0.80
deallocateMethod · 0.80

Tested by

no test coverage detected