| 149 | |
| 150 | |
| 151 | int ObsClockModel_T :: test_constructor_defaults( void ) |
| 152 | { |
| 153 | TUDEF("ObsClockModel", "constructor defaults"); |
| 154 | // Test Description: ObsClockModel constructor with default values |
| 155 | |
| 156 | |
| 157 | try |
| 158 | { |
| 159 | ObsClockModel_Child testObsClockModel; |
| 160 | SatID testSatID( 1, SatelliteSystem::GPS ); |
| 161 | |
| 162 | TUASSERT(testObsClockModel.getSigmaMultiplier() == 2.0); // Default sigma value is not as expected |
| 163 | TUASSERT(testObsClockModel.getElevationMask() == 0.0 ); // Default elevation mask value is not as expected |
| 164 | TUASSERT(testObsClockModel.getSvMode( testSatID ) == ObsClockModel::ALWAYS) // Default SvMode value is not as expected |
| 165 | TUASSERT(testObsClockModel.getUseWonkyData() == false); // Default useWonkyData value is not as expected |
| 166 | |
| 167 | TUPASS("We have successfully tested default constructor values for ObsClockModel"); |
| 168 | } |
| 169 | catch(...) |
| 170 | { |
| 171 | TUFAIL("constructor threw an exception while testing default data member values"); |
| 172 | } |
| 173 | |
| 174 | TURETURN(); |
| 175 | } |
| 176 | |
| 177 | |
| 178 | //---------------------------------------- |
nothing calls this directly
no test coverage detected