| 14829 | } |
| 14830 | virtual const ParamType* Current() const { return ¤t_value_; } |
| 14831 | virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { |
| 14832 | // Having the same base generator guarantees that the other |
| 14833 | // iterator is of the same type and we can downcast. |
| 14834 | GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) |
| 14835 | << "The program attempted to compare iterators " |
| 14836 | << "from different generators." << std::endl; |
| 14837 | const Iterator* typed_other = |
| 14838 | CheckedDowncastToActualType<const Iterator>(&other); |
| 14839 | // We must report iterators equal if they both point beyond their |
| 14840 | // respective ranges. That can happen in a variety of fashions, |
| 14841 | // so we have to consult AtEnd(). |
| 14842 | return (AtEnd() && typed_other->AtEnd()) || |
| 14843 | ( |
| 14844 | current1_ == typed_other->current1_ && |
| 14845 | current2_ == typed_other->current2_ && |
| 14846 | current3_ == typed_other->current3_ && |
| 14847 | current4_ == typed_other->current4_ && |
| 14848 | current5_ == typed_other->current5_ && |
| 14849 | current6_ == typed_other->current6_ && |
| 14850 | current7_ == typed_other->current7_ && |
| 14851 | current8_ == typed_other->current8_); |
| 14852 | } |
| 14853 | |
| 14854 | private: |
| 14855 | Iterator(const Iterator& other) |
nothing calls this directly
no test coverage detected