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

Function TEST_F

cpp/src/arrow/util/range_test.cc:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47TEST_F(TestLazyIter, TestIncrementCopy) {
48 auto add_one = [this](int64_t index) { return source_[index] + 1; };
49 auto lazy_range = MakeLazyRange(add_one, kSize);
50 std::copy(lazy_range.begin(), lazy_range.end(), target_.begin());
51
52 for (int64_t index = 0; index < kSize; ++index) {
53 ASSERT_EQ(source_[index] + 1, target_[index]);
54 }
55}
56
57TEST_F(TestLazyIter, TestPostIncrementCopy) {
58 auto add_one = [this](int64_t index) { return source_[index] + 1; };

Callers

nothing calls this directly

Calls 4

MakeLazyRangeFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected