| 179 | // Generic iterator tests |
| 180 | |
| 181 | TEST(TestIterator, DeleteOnEnd) { |
| 182 | bool deleted = false; |
| 183 | Iterator<TestInt> it(DeleteDetectableIterator<TestInt>({1}, &deleted)); |
| 184 | ASSERT_FALSE(deleted); |
| 185 | AssertIteratorNext({1}, it); |
| 186 | ASSERT_FALSE(deleted); |
| 187 | ASSERT_OK_AND_ASSIGN(auto value, it.Next()); |
| 188 | ASSERT_TRUE(IsIterationEnd(value)); |
| 189 | ASSERT_TRUE(deleted); |
| 190 | } |
| 191 | |
| 192 | // -------------------------------------------------------------------- |
| 193 | // Synchronous iterator tests |
nothing calls this directly
no test coverage detected