| 45 | }; |
| 46 | |
| 47 | TEST_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 | |
| 57 | TEST_F(TestLazyIter, TestPostIncrementCopy) { |
| 58 | auto add_one = [this](int64_t index) { return source_[index] + 1; }; |
nothing calls this directly
no test coverage detected