| 20 | BundleSettingsQsp settings; |
| 21 | |
| 22 | void SetUp() override { |
| 23 | settings = BundleSettingsQsp(new BundleSettings); |
| 24 | freePoint = std::make_unique<ControlPoint>("FreePoint"); |
| 25 | ControlMeasure *cm1 = new ControlMeasure; |
| 26 | cm1->SetCubeSerialNumber("Ignored"); |
| 27 | cm1->SetIgnored(true); |
| 28 | freePoint->Add(cm1); |
| 29 | ControlMeasure *cm2 = new ControlMeasure; |
| 30 | cm2->SetCubeSerialNumber("NotIgnored"); |
| 31 | cm2->SetIgnored(false); |
| 32 | cm2->SetCoordinate(1.0, 2.0); |
| 33 | cm2->SetResidual(-3.0, 4.0); |
| 34 | freePoint->Add(cm2); |
| 35 | |
| 36 | SurfacePoint aprioriPoint( |
| 37 | Latitude(45, Angle::Degrees), |
| 38 | Longitude(90, Angle::Degrees), |
| 39 | Distance(1000, Distance::Kilometers)); |
| 40 | freePoint->SetAprioriSurfacePoint(aprioriPoint); |
| 41 | |
| 42 | bundlePoint.reset(new BundleControlPoint(settings, freePoint.get())); |
| 43 | } |
| 44 | }; |
| 45 | |
| 46 | TEST_F(BundleControlPointPopulated, FreePoint) { |
nothing calls this directly
no test coverage detected