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

Function TEST

cpp/src/arrow/datum_test.cc:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51TEST(Datum, ImplicitConstructors) {
52 CheckImplicitConstructor<Scalar>(Datum::SCALAR);
53
54 CheckImplicitConstructor<Array>(Datum::ARRAY);
55
56 // Instantiate from array subclass
57 CheckImplicitConstructor<BinaryArray>(Datum::ARRAY);
58
59 CheckImplicitConstructor<ChunkedArray>(Datum::CHUNKED_ARRAY);
60 CheckImplicitConstructor<RecordBatch>(Datum::RECORD_BATCH);
61
62 CheckImplicitConstructor<Table>(Datum::TABLE);
63}
64
65TEST(Datum, Constructors) {
66 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
sparse_unionFunction · 0.85
default_memory_poolFunction · 0.85
run_end_encodedFunction · 0.85
DictArrayFromJSONFunction · 0.85
dense_unionFunction · 0.85
is_scalarMethod · 0.80
is_arrayMethod · 0.80

Tested by

no test coverage detected