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.18.0 lcov report (development 29806-4d001396c7) Lines: 800 938 85.3 %
Date: 2024-12-21 09:08:57 Functions: 122 139 87.8 %
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_sqr_fast 0
ZM_sqr_slice 0
ZM_sqr_worker 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 854
ZM_to_zm 1022
ZM_mul_slice 1120
ZM_mul_worker 1120
zvV_equal 1638
zv_ZM_mul 1736
ZC_divexactu 2261
ZM_transmul 2289
ZM_supnorm 4162
ZV_max_lg 10640
ZMrow_equal0 16231
zv_sum 16519
ZM_Z_div 17553
ZV_abscmp 19740
ZM_max_lg 22184
ZM_powu 22672
zm_to_Flm 22694
_ZM_sqr 23197
ZM_sqr 24213
ZM_sqr_i 24213
zv_z_mul 28498
zv_neg 51607
ZC_z_mul 61925
ZM_equal0 72442
ZM_mul_sw 73308
ZM_sub 91596
ZC_reducemodlll 98584
ZC_reducemodmatrix 111732
ZC_reducemodmatrix_i 111732
QM_QC_mul 143013
ZM_isscalar 156428
zm_to_ZM 156492
ZC_is_ei 159983
ZM_reducemodmatrix 227006
ZM_reducemodmatrix_i 227007
ZV_ZM_mul 230629
ZV_equal 295030
ZV_content 297309
ZV_neg_inplace 345096
Zupdate_row 360113
ZC_Z_add 364883
zv_to_Flv 366646
ZM_hnfdivrem 454381
ZM_Z_divexact 461514
ZV_to_nv 466196
subtract_slices 513156
ZM_transmultosym 532221
ZM_diag_mul 533867
Z_ZC_sub 545801
QM_mul 553869
ZM_isdiagonal 556561
add_slices 586464
ZM_copy 633471
RgM_check_ZM 651157
ZM_isidentity 658914
ZC_lincomb_1 741409
ZM_ishnf 760716
ZM_add 855046
zv_prod 950591
ZM_zm_mul 975485
ZRED 1035856
ZM_Q_mul 1102011
ZincrementalGS 1187833
RgV_check_ZV 1423591
ZM_neg 1657875
zv_prod_Z 1864414
check_ZV 1932418
ZV_zc_mul 2229528
ZC_Q_mul 2723355
ZV_cmp 3146987
ZM_Z_mul 3210912
ZM_equal 3354796
ZM_det_triangular 3952203
ZC_Z_div 4527374
ZV_togglesign 5038644
ZC_Z_divexact 5134828
ZV_equal_lg 6265314
ZC_neg 6305851
ZV_dotsquare 6659916
ZC_sub 8754741
ZV_prod 8829206
ZC_sub_i 9054355
ZC_hnfdivrem 10737505
ZM_mul_classical 14195263
sw_bound 14268571
ZV_equal0 14456130
vecsmall_prod 14694393
ZC_copy 14714492
ZC_lincomb1 15393259
ZV_dotproduct 16185758
ZM_zc_mul 17214552
zv_content 18456601
ZV_dotproduct_i 19174702
ZM_zc_mul_i 19278718
ZM_mul 21197036
ZM_mul_i 21573561
zv_equal0 23103438
ZM_ZC_mul 24181454
ZC_add 26483217
ZM_max_lg_i 28537222
Flc_lincomb1_inplace 29488948
zv_equal 30877388
ZC_lincomb 33294974
ZC_Z_mul 35528556
ZC_add_i 36280730
ZC_lincomb1_inplace 62173260
ZC_lincomb1_inplace_i 73076029
ZM_ZC_mul_i 77655127
ZV_max_lg_i 114302827
ZMrow_ZC_mul 135063066
zv_dotproduct 196399119
_mulii 318571124
ZMrow_ZC_mul_i 585524351

Generated by: LCOV version 1.16