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 29712-7c8a932571) Lines: 800 938 85.3 %
Date: 2024-11-15 09:08:45 Functions: 122 139 87.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 29491714
QM_QC_mul 142992
QM_mul 553869
QM_sqr 700
RgM_check_ZM 651159
RgV_check_ZV 1423593
ZC_Q_mul 2723309
ZC_ZV_mul 0
ZC_Z_add 364866
ZC_Z_div 4527120
ZC_Z_divexact 5132835
ZC_Z_mul 35528073
ZC_Z_sub 0
ZC_add 26482474
ZC_add_i 36280148
ZC_copy 14712672
ZC_divexactu 2261
ZC_hnfremdiv 10737550
ZC_is_ei 159899
ZC_lincomb 33295475
ZC_lincomb1 15392946
ZC_lincomb1_inplace 62180784
ZC_lincomb1_inplace_i 73087533
ZC_lincomb_1 741480
ZC_neg 6305965
ZC_reducemodlll 98582
ZC_reducemodmatrix 111651
ZC_reducemodmatrix_i 111651
ZC_sub 8754654
ZC_sub_i 9053966
ZC_z_mul 61903
ZMV_to_zmV 49
ZM_Q_mul 1102004
ZM_ZC_mul 24181822
ZM_ZC_mul_i 77657862
ZM_Z_div 17483
ZM_Z_divexact 461056
ZM_Z_mul 3210694
ZM_add 855049
ZM_copy 633076
ZM_det_triangular 3952185
ZM_diag_mul 533863
ZM_divexactu 441
ZM_equal 3355024
ZM_equal0 72442
ZM_hnfdivrem 454373
ZM_isdiagonal 556550
ZM_ishnf 760740
ZM_isidentity 658801
ZM_isscalar 156350
ZM_max_expi 0
ZM_max_expi_i 0
ZM_max_lg 22177
ZM_max_lg_i 28537054
ZM_mul 21196828
ZM_mul_classical 14195242
ZM_mul_diag 21
ZM_mul_fast 854
ZM_mul_i 21573402
ZM_mul_slice 1119
ZM_mul_sw 73308
ZM_mul_worker 1119
ZM_multosym 0
ZM_nc_mul_i 0
ZM_neg 1657904
ZM_nm_mul 0
ZM_pow 0
ZM_powu 22673
ZM_reducemodlll 0
ZM_reducemodmatrix 227011
ZM_reducemodmatrix_i 227012
ZM_sqr 24213
ZM_sqr_fast 0
ZM_sqr_i 24213
ZM_sqr_slice 0
ZM_sqr_worker 0
ZM_sub 91515
ZM_supnorm 4155
ZM_to_zm 1022
ZM_togglesign 0
ZM_transmul 2289
ZM_transmultosym 532221
ZM_zc_mul 17214347
ZM_zc_mul_i 19278077
ZM_zm_mul 975405
ZMrow_ZC_mul 135066913
ZMrow_ZC_mul_i 585564722
ZMrow_equal0 16231
ZRED 1035843
ZV_ZM_mul 230629
ZV_abscmp 19740
ZV_cmp 3146815
ZV_content 297306
ZV_dotproduct 16186374
ZV_dotproduct_i 19175250
ZV_dotsquare 6659727
ZV_equal 296415
ZV_equal0 14456443
ZV_equal_lg 6267172
ZV_max_expi 0
ZV_max_expi_i 0
ZV_max_lg 10640
ZV_max_lg_i 114305367
ZV_neg_inplace 345111
ZV_prod 8819948
ZV_sum 77
ZV_to_nv 401075
ZV_togglesign 5037100
ZV_zc_mul 2229528
Z_ZC_sub 545790
ZincrementalGS 1187683
Zupdate_row 360072
_ZM_mul 280
_ZM_sqr 23198
_mulii 318256454
add_slices 586464
check_ZV 1932424
nm_Z_mul 0
subtract_slices 513156
sw_bound 14268528
vecsmall_prod 14694393
zmV_to_ZMV 126
zm_to_Flm 22694
zm_to_ZM 156411
zvV_equal 1638
zv_ZM_mul 1736
zv_abs 77
zv_content 18455749
zv_dotproduct 196399119
zv_equal 30878779
zv_equal0 23103438
zv_neg 51607
zv_neg_inplace 126
zv_prod 950479
zv_prod_Z 1864235
zv_sum 16515
zv_sumpart 0
zv_to_Flv 366646
zv_z_mul 28420

Generated by: LCOV version 1.16