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

Function TEST_F

cpp/src/arrow/csv/column_builder_test.cc:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124class NullColumnBuilderTest : public ColumnBuilderTest {};
125
126TEST_F(NullColumnBuilderTest, Empty) {
127 std::shared_ptr<DataType> type = null();
128 auto tg = TaskGroup::MakeSerial();
129
130 std::shared_ptr<ColumnBuilder> builder;
131 ASSERT_OK_AND_ASSIGN(builder, ColumnBuilder::MakeNull(default_memory_pool(), type, tg));
132
133 std::shared_ptr<ChunkedArray> actual;
134 AssertBuilding(builder, {}, &actual);
135
136 ChunkedArray expected({}, type);
137 AssertChunkedEqual(*actual, expected);
138}
139
140TEST_F(NullColumnBuilderTest, InsertNull) {
141 // Building a column of nulls with type null()

Callers

nothing calls this directly

Calls 15

MakeNullFunction · 0.85
default_memory_poolFunction · 0.85
AssertBuildingFunction · 0.85
AssertChunkedEqualFunction · 0.85
MakeColumnParserFunction · 0.85
ArrayFromJSONFunction · 0.85
MakeOptionsFunction · 0.85
GetCpuThreadPoolFunction · 0.85
ChunkedArrayFromJSONFunction · 0.85
push_backMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.70
DefaultsFunction · 0.50

Tested by

no test coverage detected