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

Function TEST

cpp/src/arrow/array/array_view_test.cc:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78};
79
80TEST(TestArrayView, IdentityPrimitive) {
81 auto arr = ArrayFromJSON(int16(), "[0, -1, 42]");
82 CheckView(arr, arr->type(), arr);
83 arr = ArrayFromJSON(int16(), "[0, -1, 42, null]");
84 CheckView(arr, arr->type(), arr);
85 arr = ArrayFromJSON(boolean(), "[true, false, null]");
86 CheckView(arr, arr->type(), arr);
87}
88
89TEST(TestArrayView, IdentityNullType) {
90 auto arr = ArrayFromJSON(null(), "[null, null, null]");

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
CheckViewFunction · 0.85
fixed_size_binaryFunction · 0.85
listFunction · 0.85
CheckViewFailsFunction · 0.85
struct_Function · 0.85
fixed_size_listFunction · 0.85
decimal32Function · 0.85
AssertArraysEqualFunction · 0.85
decimal64Function · 0.85
decimal256Function · 0.85
ValueOrDieMethod · 0.80

Tested by

no test coverage detected