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

Method TestSliced

cpp/src/arrow/array/array_binary_test.cc:998–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996 }
997
998 void TestSliced() {
999 auto array = ArrayFromJSON(type_, R"(["ab", null, "cd", "ef"])")->Slice(1, 2);
1000 BinaryAppender appender;
1001 ArraySpanVisitor<TypeClass> visitor;
1002 ASSERT_OK(visitor.Visit(*array->data(), &appender));
1003 ASSERT_THAT(appender.data, ::testing::ElementsAreArray({"(null)", "cd"}));
1004 ARROW_UNUSED(visitor); // Workaround weird MSVC warning
1005 }
1006
1007 protected:
1008 std::shared_ptr<DataType> type_;

Callers 1

TYPED_TESTFunction · 0.80

Calls 4

ArrayFromJSONFunction · 0.85
SliceMethod · 0.45
VisitMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected