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

Function TEST

cpp/src/arrow/datum_test.cc:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49TEST(Datum, ImplicitConstructors) {
50 CheckImplicitConstructor<Scalar>(Datum::SCALAR);
51
52 CheckImplicitConstructor<Array>(Datum::ARRAY);
53
54 // Instantiate from array subclass
55 CheckImplicitConstructor<BinaryArray>(Datum::ARRAY);
56
57 CheckImplicitConstructor<ChunkedArray>(Datum::CHUNKED_ARRAY);
58 CheckImplicitConstructor<RecordBatch>(Datum::RECORD_BATCH);
59
60 CheckImplicitConstructor<Table>(Datum::TABLE);
61}
62
63TEST(Datum, Constructors) {
64 Datum val(std::make_shared<Int64Scalar>(1));

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
AssertArraysEqualFunction · 0.85
CheckFunction · 0.85
AssertDatumsEqualFunction · 0.85
MakeNullScalarFunction · 0.85
is_scalarMethod · 0.80
is_arrayMethod · 0.80
make_arrayMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.70
MakeFunction · 0.70
schemaFunction · 0.70
fieldFunction · 0.70

Tested by

no test coverage detected