| 52 | } |
| 53 | |
| 54 | bool JointSegment::IsFake() const |
| 55 | { |
| 56 | // This is enough, but let's check in Debug for confidence. |
| 57 | bool const result = (m_numMwmId == kFakeNumMwmId && m_startSegmentId != kInvalidSegmentId); |
| 58 | if (result) |
| 59 | { |
| 60 | // Try if m_featureId can be real in a fake JointSegment. |
| 61 | // ASSERT_EQUAL(m_featureId, kInvalidFeatureId, ()); |
| 62 | |
| 63 | ASSERT_EQUAL(m_startSegmentId, m_endSegmentId, ()); |
| 64 | ASSERT_EQUAL(m_forward, false, ()); |
| 65 | } |
| 66 | |
| 67 | return result; |
| 68 | } |
| 69 | |
| 70 | Segment JointSegment::GetSegment(bool start) const |
| 71 | { |
no outgoing calls
no test coverage detected