Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase test coverage of C code [AP-949] #1377

Merged
merged 7 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,163 changes: 4,653 additions & 510 deletions c/test/cpp/auto_check_sbp_acquisition_MsgAcqResultDepA.cc

Large diffs are not rendered by default.

4,426 changes: 3,952 additions & 474 deletions c/test/cpp/auto_check_sbp_acquisition_MsgAcqResultDepB.cc

Large diffs are not rendered by default.

4,426 changes: 3,952 additions & 474 deletions c/test/cpp/auto_check_sbp_acquisition_MsgAcqResultDepC.cc

Large diffs are not rendered by default.

2,001 changes: 1,856 additions & 145 deletions c/test/cpp/auto_check_sbp_bootload_MsgBootloaderHandshakeResp.cc

Large diffs are not rendered by default.

850 changes: 764 additions & 86 deletions c/test/cpp/auto_check_sbp_ext_events_MsgExtEvent.cc

Large diffs are not rendered by default.

819 changes: 752 additions & 67 deletions c/test/cpp/auto_check_sbp_file_io_MsgFileioWriteResp.cc

Large diffs are not rendered by default.

817 changes: 742 additions & 75 deletions c/test/cpp/auto_check_sbp_imu_MsgImuAux.cc

Large diffs are not rendered by default.

879 changes: 779 additions & 100 deletions c/test/cpp/auto_check_sbp_imu_MsgImuRaw.cc

Large diffs are not rendered by default.

877 changes: 784 additions & 93 deletions c/test/cpp/auto_check_sbp_integrity_MsgAcknowledge.cc

Large diffs are not rendered by default.

1,079 changes: 920 additions & 159 deletions c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagHighLevel.cc

Large diffs are not rendered by default.

1,034 changes: 905 additions & 129 deletions c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLos.cc

Large diffs are not rendered by default.

997 changes: 878 additions & 119 deletions c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagIonoGridPoints.cc

Large diffs are not rendered by default.

1,012 changes: 887 additions & 125 deletions c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLos.cc

Large diffs are not rendered by default.

973 changes: 858 additions & 115 deletions c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagSatellites.cc

Large diffs are not rendered by default.

998 changes: 878 additions & 120 deletions c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagTropoGridPoints.cc

Large diffs are not rendered by default.

1,054 changes: 896 additions & 158 deletions c/test/cpp/auto_check_sbp_logging_MsgFwd.cc

Large diffs are not rendered by default.

936 changes: 865 additions & 71 deletions c/test/cpp/auto_check_sbp_logging_MsgLog.cc

Large diffs are not rendered by default.

5,658 changes: 5,206 additions & 452 deletions c/test/cpp/auto_check_sbp_logging_MsgPrintDep.cc

Large diffs are not rendered by default.

831 changes: 761 additions & 70 deletions c/test/cpp/auto_check_sbp_navigation_MsgAgeCorrections.cc

Large diffs are not rendered by default.

4,436 changes: 3,947 additions & 489 deletions c/test/cpp/auto_check_sbp_navigation_MsgBaselineECEF.cc

Large diffs are not rendered by default.

9,931 changes: 8,870 additions & 1,061 deletions c/test/cpp/auto_check_sbp_navigation_MsgBaselineECEFDepA.cc

Large diffs are not rendered by default.

4,476 changes: 3,972 additions & 504 deletions c/test/cpp/auto_check_sbp_navigation_MsgBaselineNED.cc

Large diffs are not rendered by default.

9,999 changes: 8,894 additions & 1,105 deletions c/test/cpp/auto_check_sbp_navigation_MsgBaselineNEDDepA.cc

Large diffs are not rendered by default.

867 changes: 772 additions & 95 deletions c/test/cpp/auto_check_sbp_navigation_MsgDops.cc

Large diffs are not rendered by default.

7,780 changes: 6,923 additions & 857 deletions c/test/cpp/auto_check_sbp_navigation_MsgDopsDepA.cc

Large diffs are not rendered by default.

4,186 changes: 3,762 additions & 424 deletions c/test/cpp/auto_check_sbp_navigation_MsgGPSTime.cc

Large diffs are not rendered by default.

9,399 changes: 8,460 additions & 939 deletions c/test/cpp/auto_check_sbp_navigation_MsgGPSTimeDepA.cc

Large diffs are not rendered by default.

4,256 changes: 3,832 additions & 424 deletions c/test/cpp/auto_check_sbp_navigation_MsgGPSTimeGNSS.cc

Large diffs are not rendered by default.

3,506 changes: 3,109 additions & 397 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosECEF.cc

Large diffs are not rendered by default.

938 changes: 826 additions & 112 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosECEFCov.cc

Large diffs are not rendered by default.

957 changes: 839 additions & 118 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosECEFCovGNSS.cc

Large diffs are not rendered by default.

9,833 changes: 8,729 additions & 1,104 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosECEFDepA.cc

Large diffs are not rendered by default.

890 changes: 794 additions & 96 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosECEFGNSS.cc

Large diffs are not rendered by default.

4,424 changes: 3,906 additions & 518 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosLLH.cc

Large diffs are not rendered by default.

936 changes: 821 additions & 115 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosLLHCov.cc

Large diffs are not rendered by default.

9,916 changes: 8,768 additions & 1,148 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosLLHDepA.cc

Large diffs are not rendered by default.

955 changes: 837 additions & 118 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosLlhCovGnss.cc

Large diffs are not rendered by default.

898 changes: 798 additions & 100 deletions c/test/cpp/auto_check_sbp_navigation_MsgPosLlhGnss.cc

Large diffs are not rendered by default.

1,089 changes: 922 additions & 167 deletions c/test/cpp/auto_check_sbp_navigation_MsgPoseRelative.cc

Large diffs are not rendered by default.

906 changes: 812 additions & 94 deletions c/test/cpp/auto_check_sbp_navigation_MsgProtectionLevel.cc

Large diffs are not rendered by default.

1,106 changes: 928 additions & 178 deletions c/test/cpp/auto_check_sbp_navigation_MsgReferenceFrameParam.cc

Large diffs are not rendered by default.

917 changes: 813 additions & 104 deletions c/test/cpp/auto_check_sbp_navigation_MsgUTCLeapSecond.cc

Large diffs are not rendered by default.

895 changes: 792 additions & 103 deletions c/test/cpp/auto_check_sbp_navigation_MsgUTCTime.cc

Large diffs are not rendered by default.

909 changes: 806 additions & 103 deletions c/test/cpp/auto_check_sbp_navigation_MsgUTCTimeGNSS.cc

Large diffs are not rendered by default.

926 changes: 814 additions & 112 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelBody.cc

Large diffs are not rendered by default.

2,647 changes: 2,341 additions & 306 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelCog.cc

Large diffs are not rendered by default.

4,356 changes: 3,877 additions & 479 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelECEF.cc

Large diffs are not rendered by default.

937 changes: 825 additions & 112 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelECEFCov.cc

Large diffs are not rendered by default.

9,773 changes: 8,712 additions & 1,061 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelECEFDepA.cc

Large diffs are not rendered by default.

952 changes: 838 additions & 114 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelEcefCovGnss.cc

Large diffs are not rendered by default.

886 changes: 793 additions & 93 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelEcefGnss.cc

Large diffs are not rendered by default.

4,396 changes: 3,897 additions & 499 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelNED.cc

Large diffs are not rendered by default.

934 changes: 821 additions & 113 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelNEDCOV.cc

Large diffs are not rendered by default.

9,852 changes: 8,747 additions & 1,105 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelNEDDepA.cc

Large diffs are not rendered by default.

953 changes: 836 additions & 117 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelNedCovGnss.cc

Large diffs are not rendered by default.

894 changes: 797 additions & 97 deletions c/test/cpp/auto_check_sbp_navigation_MsgVelNedGnss.cc

Large diffs are not rendered by default.

835 changes: 760 additions & 75 deletions c/test/cpp/auto_check_sbp_observation_MsgBasePosEcef.cc

Large diffs are not rendered by default.

1,178 changes: 980 additions & 198 deletions c/test/cpp/auto_check_sbp_observation_MsgEphemerisBds.cc

Large diffs are not rendered by default.

1,088 changes: 924 additions & 164 deletions c/test/cpp/auto_check_sbp_observation_MsgEphemerisGLO.cc

Large diffs are not rendered by default.

1,168 changes: 973 additions & 195 deletions c/test/cpp/auto_check_sbp_observation_MsgEphemerisGPS.cc

Large diffs are not rendered by default.

1,193 changes: 988 additions & 205 deletions c/test/cpp/auto_check_sbp_observation_MsgEphemerisGal.cc

Large diffs are not rendered by default.

859 changes: 771 additions & 88 deletions c/test/cpp/auto_check_sbp_observation_MsgGloBiases.cc

Large diffs are not rendered by default.

3,286 changes: 2,538 additions & 748 deletions c/test/cpp/auto_check_sbp_observation_MsgObs.cc

Large diffs are not rendered by default.

6,540 changes: 5,298 additions & 1,242 deletions c/test/cpp/auto_check_sbp_observation_MsgObsDepB.cc

Large diffs are not rendered by default.

6,257 changes: 5,116 additions & 1,141 deletions c/test/cpp/auto_check_sbp_observation_MsgObsDepC.cc

Large diffs are not rendered by default.

2,228 changes: 1,649 additions & 579 deletions c/test/cpp/auto_check_sbp_observation_MsgOsr.cc

Large diffs are not rendered by default.

2,381 changes: 1,748 additions & 633 deletions c/test/cpp/auto_check_sbp_observation_MsgSvAzEl.cc

Large diffs are not rendered by default.

6,884 changes: 5,747 additions & 1,137 deletions c/test/cpp/auto_check_sbp_observation_msgEphemerisDepB.cc

Large diffs are not rendered by default.

1,173 changes: 979 additions & 194 deletions c/test/cpp/auto_check_sbp_observation_msgEphemerisQzss.cc

Large diffs are not rendered by default.

6,980 changes: 5,792 additions & 1,188 deletions c/test/cpp/auto_check_sbp_observation_msgObsDepA.cc

Large diffs are not rendered by default.

860 changes: 776 additions & 84 deletions c/test/cpp/auto_check_sbp_orientation_MsgAngularRate.cc

Large diffs are not rendered by default.

896 changes: 798 additions & 98 deletions c/test/cpp/auto_check_sbp_orientation_MsgOrientEuler.cc

Large diffs are not rendered by default.

912 changes: 809 additions & 103 deletions c/test/cpp/auto_check_sbp_orientation_MsgOrientQuat.cc

Large diffs are not rendered by default.

4,331 changes: 3,877 additions & 454 deletions c/test/cpp/auto_check_sbp_piksi_MsgDeviceMonitor.cc

Large diffs are not rendered by default.

5,541 changes: 5,060 additions & 481 deletions c/test/cpp/auto_check_sbp_piksi_MsgIarState.cc

Large diffs are not rendered by default.

1,299 changes: 1,036 additions & 263 deletions c/test/cpp/auto_check_sbp_piksi_MsgNetworkBandwidthUsage.cc

Large diffs are not rendered by default.

9,297 changes: 8,303 additions & 994 deletions c/test/cpp/auto_check_sbp_piksi_MsgThreadState.cc

Large diffs are not rendered by default.

2,158 changes: 1,823 additions & 335 deletions c/test/cpp/auto_check_sbp_piksi_MsgUartState.cc

Large diffs are not rendered by default.

6,517 changes: 5,503 additions & 1,014 deletions c/test/cpp/auto_check_sbp_piksi_MsgUartStateDepA.cc

Large diffs are not rendered by default.

1,181 changes: 979 additions & 202 deletions c/test/cpp/auto_check_sbp_sbas_MsgSbasRaw.cc

Large diffs are not rendered by default.

791 changes: 732 additions & 59 deletions c/test/cpp/auto_check_sbp_settings_MsgSettingsReadByIndexDone.cc

Large diffs are not rendered by default.

5,653 changes: 5,161 additions & 492 deletions c/test/cpp/auto_check_sbp_settings_MsgSettingsReadByIndexResp.cc

Large diffs are not rendered by default.

2,586 changes: 1,923 additions & 663 deletions c/test/cpp/auto_check_sbp_signing_MsgCertificateChain.cc

Large diffs are not rendered by default.

2,493 changes: 1,866 additions & 627 deletions c/test/cpp/auto_check_sbp_signing_MsgCertificateChainDep.cc

Large diffs are not rendered by default.

4,373 changes: 3,075 additions & 1,298 deletions c/test/cpp/auto_check_sbp_signing_MsgEcdsaCertificate.cc

Large diffs are not rendered by default.

1,828 changes: 1,428 additions & 400 deletions c/test/cpp/auto_check_sbp_signing_MsgEcdsaSignature.cc

Large diffs are not rendered by default.

4,130 changes: 3,022 additions & 1,108 deletions c/test/cpp/auto_check_sbp_signing_MsgEcdsaSignatureDepA.cc

Large diffs are not rendered by default.

1,837 changes: 1,438 additions & 399 deletions c/test/cpp/auto_check_sbp_signing_MsgEcdsaSignatureDepB.cc

Large diffs are not rendered by default.

2,271 changes: 1,728 additions & 543 deletions c/test/cpp/auto_check_sbp_signing_MsgEd25519CertificateDep.cc

Large diffs are not rendered by default.

2,190 changes: 1,684 additions & 506 deletions c/test/cpp/auto_check_sbp_signing_MsgEd25519SignatureDepA.cc

Large diffs are not rendered by default.

2,212 changes: 1,698 additions & 514 deletions c/test/cpp/auto_check_sbp_signing_MsgEd25519SignatureDepB.cc

Large diffs are not rendered by default.

1,201 changes: 1,003 additions & 198 deletions c/test/cpp/auto_check_sbp_ssr_MsgSsrCodePhaseBiasesBounds.cc

Large diffs are not rendered by default.

2,364 changes: 1,977 additions & 387 deletions c/test/cpp/auto_check_sbp_ssr_MsgSsrGriddedCorrectionBounds.cc

Large diffs are not rendered by default.

1,179 changes: 983 additions & 196 deletions c/test/cpp/auto_check_sbp_ssr_MsgSsrOrbitClockBounds.cc

Large diffs are not rendered by default.

1,084 changes: 925 additions & 159 deletions c/test/cpp/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradation.cc

Large diffs are not rendered by default.

1,252 changes: 1,035 additions & 217 deletions c/test/cpp/auto_check_sbp_ssr_MsgSsrSatelliteApc.cc

Large diffs are not rendered by default.

1,151 changes: 964 additions & 187 deletions c/test/cpp/auto_check_sbp_ssr_MsgSsrStecCorrection.cc

Large diffs are not rendered by default.

972 changes: 848 additions & 124 deletions c/test/cpp/auto_check_sbp_ssr_MsgSsrTileDefinition.cc

Large diffs are not rendered by default.

944 changes: 836 additions & 108 deletions c/test/cpp/auto_check_sbp_ssr_MsgSsrTileDefinitionDepB.cc

Large diffs are not rendered by default.

982 changes: 901 additions & 81 deletions c/test/cpp/auto_check_sbp_system_MsgDgnssStatus.cc

Large diffs are not rendered by default.

1,921 changes: 1,677 additions & 244 deletions c/test/cpp/auto_check_sbp_system_MsgGroupMeta.cc

Large diffs are not rendered by default.

1,584 changes: 1,452 additions & 132 deletions c/test/cpp/auto_check_sbp_system_MsgHeartbeat.cc

Large diffs are not rendered by default.

802 changes: 735 additions & 67 deletions c/test/cpp/auto_check_sbp_system_MsgInsStatus.cc

Large diffs are not rendered by default.

876 changes: 781 additions & 95 deletions c/test/cpp/auto_check_sbp_system_MsgInsUpdates.cc

Large diffs are not rendered by default.

903 changes: 803 additions & 100 deletions c/test/cpp/auto_check_sbp_system_MsgSensorAidEvent.cc

Large diffs are not rendered by default.

1,626 changes: 1,478 additions & 148 deletions c/test/cpp/auto_check_sbp_system_MsgStartup.cc

Large diffs are not rendered by default.

1,973 changes: 1,718 additions & 255 deletions c/test/cpp/auto_check_sbp_system_MsgStatusJournal.cc

Large diffs are not rendered by default.

988 changes: 854 additions & 134 deletions c/test/cpp/auto_check_sbp_telemetry_MsgTelSv.cc

Large diffs are not rendered by default.

3,743 changes: 2,704 additions & 1,039 deletions c/test/cpp/auto_check_sbp_tracking_MsgMeasurementState.cc

Large diffs are not rendered by default.

7,588 changes: 5,983 additions & 1,605 deletions c/test/cpp/auto_check_sbp_tracking_MsgTrackingState.cc

Large diffs are not rendered by default.

5,606 changes: 4,747 additions & 859 deletions c/test/cpp/auto_check_sbp_tracking_MsgTrackingStateDetailedDep.cc

Large diffs are not rendered by default.

7,560 changes: 6,199 additions & 1,361 deletions c/test/cpp/auto_check_sbp_tracking_MsgtrackingStateDepA.cc

Large diffs are not rendered by default.

816 changes: 742 additions & 74 deletions c/test/cpp/auto_check_sbp_vehicle_MsgOdometry.cc

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion c/third_party/googletest
Submodule googletest updated 288 files
4 changes: 4 additions & 0 deletions generator/sbpg/targets/resources/c/test/v4/sbp_c_test.c.j2
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ START_TEST( test_(((s.suite_name))) )
((*- elif value is dict_type *))
((*- if value.handle_as and value.handle_as == "encoded-string" *))
(((compare_string(root_path, value))))
((*- elif value.handle_as and value.handle_as == "vararray-len" *))
ck_assert_msg( (((-path))) == (((value.value))), "incorrect value for (((path))), expected (((value.value))), is %d", (((path))));
((*- else *))
((*- for k in value|sorted *))
(((compare_value(root_path, path + '.' + k, value[k]))))
Expand Down Expand Up @@ -146,6 +148,8 @@ START_TEST( test_(((s.suite_name))) )
((*- elif value is dict_type *))
((*- if value.handle_as and value.handle_as == "encoded-string" *))
(((assign_string(root_path, value))))
((*- elif value.handle_as and value.handle_as == "vararray-len" *))
(((path))) = (((value.value)));
((*- else *))
((*- for k in (((value|sorted))) *))
(((assign_value(root_path, path + '.' + k, value[k]))))
Expand Down
Loading
Loading