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-03-28 08:06:56 Functions: 122 136 89.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 29503565
QM_QC_mul 132989
QM_mul 536873
QM_sqr 700
RgM_check_ZM 599296
RgV_check_ZV 1421288
ZC_Q_mul 2625967
ZC_ZV_mul 0
ZC_Z_add 363014
ZC_Z_div 4470777
ZC_Z_divexact 4409927
ZC_Z_mul 35182851
ZC_Z_sub 0
ZC_add 26408569
ZC_add_i 34407100
ZC_copy 13301870
ZC_divexactu 2261
ZC_hnfremdiv 11314113
ZC_is_ei 105829
ZC_lincomb 35945707
ZC_lincomb1 17675510
ZC_lincomb1_inplace 82835766
ZC_lincomb1_inplace_i 93639087
ZC_lincomb_1 733122
ZC_neg 6043667
ZC_reducemodlll 98483
ZC_reducemodmatrix 110412
ZC_reducemodmatrix_i 110412
ZC_sub 9292544
ZC_sub_i 9550471
ZC_z_mul 61071
ZMV_to_zmV 49
ZM_Q_mul 1098407
ZM_ZC_mul 23144509
ZM_ZC_mul_i 75432473
ZM_Z_div 14935
ZM_Z_divexact 427337
ZM_Z_mul 3006546
ZM_add 741412
ZM_copy 518806
ZM_det_triangular 3868415
ZM_diag_mul 530942
ZM_divexactu 441
ZM_equal 3347852
ZM_equal0 70223
ZM_hnfdivrem 453680
ZM_isdiagonal 555781
ZM_ishnf 749126
ZM_isidentity 638750
ZM_isscalar 113627
ZM_max_expi 0
ZM_max_expi_i 0
ZM_max_lg 21598
ZM_max_lg_i 28873368
ZM_mul 21041617
ZM_mul_classical 14394401
ZM_mul_diag 21
ZM_mul_fast 974
ZM_mul_i 21210386
ZM_mul_slice 1308
ZM_mul_sw 43569
ZM_mul_worker 1308
ZM_multosym 0
ZM_nc_mul_i 0
ZM_neg 1674752
ZM_nm_mul 0
ZM_pow 0
ZM_powu 22638
ZM_reducemodlll 0
ZM_reducemodmatrix 226870
ZM_reducemodmatrix_i 226870
ZM_sqr 25165
ZM_sqr_i 25165
ZM_sub 77344
ZM_supnorm 3791
ZM_to_zm 1022
ZM_togglesign 0
ZM_transmul 2485
ZM_transmultosym 525460
ZM_zc_mul 18930222
ZM_zc_mul_i 20651208
ZM_zm_mul 810509
ZMrow_ZC_mul 154656753
ZMrow_ZC_mul_i 550878385
ZMrow_equal0 16185
ZRED 1033025
ZV_ZM_mul 212436
ZV_abscmp 19677
ZV_cmp 3133868
ZV_content 405311
ZV_dotproduct 16207919
ZV_dotproduct_i 19063704
ZV_dotsquare 6680320
ZV_equal 291964
ZV_equal0 14502739
ZV_equal_lg 6315506
ZV_max_expi 0
ZV_max_expi_i 0
ZV_max_lg 10619
ZV_max_lg_i 110285586
ZV_neg_inplace 344246
ZV_prod 8814283
ZV_sum 77
ZV_to_nv 393932
ZV_togglesign 4987525
ZV_zc_mul 2214660
Z_ZC_sub 545202
ZincrementalGS 1183503
Zupdate_row 358798
_ZM_mul 280
_ZM_sqr 23184
_mulii 356789771
add_slices 348552
check_ZV 1713902
nm_Z_mul 0
subtract_slices 304983
sw_bound 14437955
vecsmall_prod 14694393
zmV_to_ZMV 126
zm_to_Flm 22694
zm_to_ZM 137179
zvV_equal 1638
zv_ZM_mul 1736
zv_abs 77
zv_content 20569105
zv_dotproduct 196399119
zv_equal 30833232
zv_equal0 23099578
zv_neg 51079
zv_neg_inplace 126
zv_prod 939936
zv_prod_Z 1862856
zv_sum 16428
zv_sumpart 0
zv_to_Flv 366646
zv_z_mul 28285

Generated by: LCOV version 1.14