| 45 | }; |
| 46 | |
| 47 | TEST_F(ConstraintPointsAccess, testDefaultGeoElementIdsAreSane) // NOLINT |
| 48 | { |
| 49 | // Arrange |
| 50 | auto constraint = Sketcher::Constraint(); |
| 51 | |
| 52 | // Act - no action needed, we are testing the default state |
| 53 | |
| 54 | // Assert |
| 55 | #if SKETCHER_CONSTRAINT_USE_LEGACY_ELEMENTS |
| 56 | // Old way of accessing elements |
| 57 | EXPECT_EQ(constraint.First, Sketcher::GeoEnum::GeoUndef); |
| 58 | EXPECT_EQ(constraint.FirstPos, Sketcher::PointPos::none); |
| 59 | |
| 60 | EXPECT_EQ(constraint.Second, Sketcher::GeoEnum::GeoUndef); |
| 61 | EXPECT_EQ(constraint.SecondPos, Sketcher::PointPos::none); |
| 62 | |
| 63 | EXPECT_EQ(constraint.Third, Sketcher::GeoEnum::GeoUndef); |
| 64 | EXPECT_EQ(constraint.ThirdPos, Sketcher::PointPos::none); |
| 65 | |
| 66 | // New way of accessing elements |
| 67 | #endif |
| 68 | EXPECT_EQ( |
| 69 | constraint.getElement(0), |
| 70 | Sketcher::GeoElementId(Sketcher::GeoEnum::GeoUndef, Sketcher::PointPos::none) |
| 71 | ); |
| 72 | EXPECT_EQ( |
| 73 | constraint.getElement(1), |
| 74 | Sketcher::GeoElementId(Sketcher::GeoEnum::GeoUndef, Sketcher::PointPos::none) |
| 75 | ); |
| 76 | EXPECT_EQ( |
| 77 | constraint.getElement(2), |
| 78 | Sketcher::GeoElementId(Sketcher::GeoEnum::GeoUndef, Sketcher::PointPos::none) |
| 79 | ); |
| 80 | } |
| 81 | |
| 82 | #if SKETCHER_CONSTRAINT_USE_LEGACY_ELEMENTS |
| 83 | TEST_F(ConstraintPointsAccess, testOldWriteIsReadByNew) // NOLINT |
nothing calls this directly
no test coverage detected