Code coverage tests

This page documents the degree to which the PARI/GP source code is tested by our public test suite, distributed with the source distribution in directory src/test/. This is measured by the gcov utility; we then process gcov output using the lcov frond-end.

We test a few variants depending on Configure flags on the pari.math.u-bordeaux.fr machine (x86_64 architecture), and agregate them in the final report:

The target is to exceed 90% coverage for all mathematical modules (given that branches depending on DEBUGLEVEL or DEBUGMEM are not covered). This script is run to produce the results below.

LCOV - code coverage report
Current view: top level - basemath - ZV.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 779 888 87.7 %
Date: 2024-05-02 08:08:24 Functions: 122 136 89.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ZC_ZV_mul 0
ZC_Z_sub 0
ZM_max_expi 0
ZM_max_expi_i 0
ZM_multosym 0
ZM_nc_mul_i 0
ZM_nm_mul 0
ZM_pow 0
ZM_reducemodlll 0
ZM_togglesign 0
ZV_max_expi 0
ZV_max_expi_i 0
nm_Z_mul 0
zv_sumpart 0
ZM_mul_diag 21
ZMV_to_zmV 49
ZV_sum 77
zv_abs 77
zmV_to_ZMV 126
zv_neg_inplace 126
_ZM_mul 280
ZM_divexactu 441
QM_sqr 700
ZM_mul_fast 974
ZM_to_zm 1022
ZM_mul_slice 1308
ZM_mul_worker 1308
zvV_equal 1638
zv_ZM_mul 1736
ZC_divexactu 2261
ZM_transmul 2485
ZM_supnorm 3791
ZV_max_lg 10619
ZM_Z_div 14935
ZMrow_equal0 16185
zv_sum 16429
ZV_abscmp 19677
ZM_max_lg 21598
ZM_powu 22638
zm_to_Flm 22694
_ZM_sqr 23184
ZM_sqr 25165
ZM_sqr_i 25165
zv_z_mul 28291
ZM_mul_sw 43569
zv_neg 51088
ZC_z_mul 61070
ZM_equal0 70223
ZM_sub 76940
ZC_reducemodlll 98484
ZC_is_ei 105829
ZC_reducemodmatrix 110412
ZC_reducemodmatrix_i 110413
ZM_isscalar 113233
QM_QC_mul 132989
zm_to_ZM 136775
ZV_ZM_mul 212436
ZM_reducemodmatrix 226873
ZM_reducemodmatrix_i 226873
ZV_equal 291964
subtract_slices 304983
ZV_neg_inplace 344240
add_slices 348552
Zupdate_row 358778
ZC_Z_add 363008
zv_to_Flv 366646
ZV_to_nv 393940
ZV_content 405311
ZM_Z_divexact 427351
ZM_hnfdivrem 453670
ZM_copy 518196
ZM_transmultosym 525460
ZM_diag_mul 530970
QM_mul 536873
Z_ZC_sub 545193
ZM_isdiagonal 555787
RgM_check_ZM 599286
ZM_isidentity 638773
ZC_lincomb_1 732780
ZM_add 741300
ZM_ishnf 749125
ZM_zm_mul 810105
zv_prod 939922
ZRED 1032998
ZM_Q_mul 1097485
ZincrementalGS 1183490
RgV_check_ZV 1421290
ZM_neg 1674052
check_ZV 1713882
zv_prod_Z 1862854
ZV_zc_mul 2214660
ZC_Q_mul 2625967
ZM_Z_mul 3005195
ZV_cmp 3133771
ZM_equal 3347752
ZM_det_triangular 3868091
ZC_Z_divexact 4410012
ZC_Z_div 4470779
ZV_togglesign 4988821
ZC_neg 6041948
ZV_equal_lg 6315313
ZV_dotsquare 6679040
ZV_prod 8814301
ZC_sub 9292452
ZC_sub_i 9549516
ZC_hnfremdiv 11314178
ZC_copy 13299799
ZM_mul_classical 14390258
sw_bound 14433832
ZV_equal0 14501712
vecsmall_prod 14694393
ZV_dotproduct 16204146
ZC_lincomb1 17674893
ZM_zc_mul 18929474
ZV_dotproduct_i 19061229
zv_content 20567722
ZM_zc_mul_i 20649553
ZM_mul 21036914
ZM_mul_i 21205606
zv_equal0 23099573
ZM_ZC_mul 23139250
ZC_add 26407562
ZM_max_lg_i 28865249
Flc_lincomb1_inplace 29503590
zv_equal 30833428
ZC_add_i 34405713
ZC_Z_mul 35175789
ZC_lincomb 35938981
ZM_ZC_mul_i 75411124
ZC_lincomb1_inplace 82826786
ZC_lincomb1_inplace_i 93627320
ZV_max_lg_i 110254102
ZMrow_ZC_mul 154598535
zv_dotproduct 196399119
_mulii 356789818
ZMrow_ZC_mul_i 550749394

Generated by: LCOV version 1.14