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
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 1119
ZM_mul_worker 1119
zvV_equal 1638
zv_ZM_mul 1736
ZC_divexactu 2261
ZM_transmul 2289
ZM_supnorm 4155
ZV_max_lg 10640
ZMrow_equal0 16231
zv_sum 16515
ZM_Z_div 17483
ZV_abscmp 19740
ZM_max_lg 22177
ZM_powu 22673
zm_to_Flm 22694
_ZM_sqr 23198
ZM_sqr 24213
ZM_sqr_i 24213
zv_z_mul 28420
zv_neg 51607
ZC_z_mul 61903
ZM_equal0 72442
ZM_mul_sw 73308
ZM_sub 91515
ZC_reducemodlll 98582
ZC_reducemodmatrix 111651
ZC_reducemodmatrix_i 111651
QM_QC_mul 142992
ZM_isscalar 156350
zm_to_ZM 156411
ZC_is_ei 159899
ZM_reducemodmatrix 227011
ZM_reducemodmatrix_i 227012
ZV_ZM_mul 230629
ZV_equal 296415
ZV_content 297306
ZV_neg_inplace 345111
Zupdate_row 360072
ZC_Z_add 364866
zv_to_Flv 366646
ZV_to_nv 401075
ZM_hnfdivrem 454373
ZM_Z_divexact 461056
subtract_slices 513156
ZM_transmultosym 532221
ZM_diag_mul 533863
Z_ZC_sub 545790
QM_mul 553869
ZM_isdiagonal 556550
add_slices 586464
ZM_copy 633076
RgM_check_ZM 651159
ZM_isidentity 658801
ZC_lincomb_1 741480
ZM_ishnf 760740
ZM_add 855049
zv_prod 950479
ZM_zm_mul 975405
ZRED 1035843
ZM_Q_mul 1102004
ZincrementalGS 1187683
RgV_check_ZV 1423593
ZM_neg 1657904
zv_prod_Z 1864235
check_ZV 1932424
ZV_zc_mul 2229528
ZC_Q_mul 2723309
ZV_cmp 3146815
ZM_Z_mul 3210694
ZM_equal 3355024
ZM_det_triangular 3952185
ZC_Z_div 4527120
ZV_togglesign 5037100
ZC_Z_divexact 5132835
ZV_equal_lg 6267172
ZC_neg 6305965
ZV_dotsquare 6659727
ZC_sub 8754654
ZV_prod 8819948
ZC_sub_i 9053966
ZC_hnfremdiv 10737550
ZM_mul_classical 14195242
sw_bound 14268528
ZV_equal0 14456443
vecsmall_prod 14694393
ZC_copy 14712672
ZC_lincomb1 15392946
ZV_dotproduct 16186374
ZM_zc_mul 17214347
zv_content 18455749
ZV_dotproduct_i 19175250
ZM_zc_mul_i 19278077
ZM_mul 21196828
ZM_mul_i 21573402
zv_equal0 23103438
ZM_ZC_mul 24181822
ZC_add 26482474
ZM_max_lg_i 28537054
Flc_lincomb1_inplace 29491714
zv_equal 30878779
ZC_lincomb 33295475
ZC_Z_mul 35528073
ZC_add_i 36280148
ZC_lincomb1_inplace 62180784
ZC_lincomb1_inplace_i 73087533
ZM_ZC_mul_i 77657862
ZV_max_lg_i 114305367
ZMrow_ZC_mul 135066913
zv_dotproduct 196399119
_mulii 318256454
ZMrow_ZC_mul_i 585564722

Generated by: LCOV version 1.16