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-22 09:08:28 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 29492464
QM_QC_mul 143013
QM_mul 553869
QM_sqr 700
RgM_check_ZM 651155
RgV_check_ZV 1423588
ZC_Q_mul 2723353
ZC_ZV_mul 0
ZC_Z_add 364900
ZC_Z_div 4527382
ZC_Z_divexact 5134762
ZC_Z_mul 35529055
ZC_Z_sub 0
ZC_add 26483691
ZC_add_i 36281659
ZC_copy 14713629
ZC_divexactu 2261
ZC_hnfdivrem 10737448
ZC_is_ei 159983
ZC_lincomb 33295034
ZC_lincomb1 15392321
ZC_lincomb1_inplace 62184554
ZC_lincomb1_inplace_i 73088162
ZC_lincomb_1 741536
ZC_neg 6306463
ZC_reducemodlll 98582
ZC_reducemodmatrix 111726
ZC_reducemodmatrix_i 111726
ZC_sub 8754819
ZC_sub_i 9054101
ZC_z_mul 61924
ZMV_to_zmV 49
ZM_Q_mul 1102018
ZM_ZC_mul 24181740
ZM_ZC_mul_i 77659780
ZM_Z_div 17553
ZM_Z_divexact 461510
ZM_Z_mul 3211139
ZM_add 855158
ZM_copy 633377
ZM_det_triangular 3952105
ZM_diag_mul 533872
ZM_divexactu 441
ZM_equal 3354947
ZM_equal0 72442
ZM_hnfdivrem 454378
ZM_isdiagonal 556539
ZM_ishnf 760724
ZM_isidentity 658945
ZM_isscalar 156442
ZM_max_expi 0
ZM_max_expi_i 0
ZM_max_lg 22183
ZM_max_lg_i 28538619
ZM_mul 21197730
ZM_mul_classical 14195996
ZM_mul_diag 21
ZM_mul_fast 854
ZM_mul_i 21574282
ZM_mul_slice 1120
ZM_mul_sw 73308
ZM_mul_worker 1120
ZM_multosym 0
ZM_nc_mul_i 0
ZM_neg 1657999
ZM_nm_mul 0
ZM_pow 0
ZM_powu 22673
ZM_reducemodlll 0
ZM_reducemodmatrix 227013
ZM_reducemodmatrix_i 227013
ZM_sqr 24213
ZM_sqr_fast 0
ZM_sqr_i 24213
ZM_sqr_slice 0
ZM_sqr_worker 0
ZM_sub 91486
ZM_supnorm 4162
ZM_to_zm 1022
ZM_togglesign 0
ZM_transmul 2289
ZM_transmultosym 532221
ZM_zc_mul 17214571
ZM_zc_mul_i 19278354
ZM_zm_mul 975375
ZMrow_ZC_mul 135063029
ZMrow_ZC_mul_i 585572898
ZMrow_equal0 16231
ZRED 1035904
ZV_ZM_mul 230629
ZV_abscmp 19740
ZV_cmp 3146996
ZV_content 297303
ZV_dotproduct 16186575
ZV_dotproduct_i 19175321
ZV_dotsquare 6659802
ZV_equal 295020
ZV_equal0 14456435
ZV_equal_lg 6265617
ZV_max_expi 0
ZV_max_expi_i 0
ZV_max_lg 10640
ZV_max_lg_i 114311728
ZV_neg_inplace 345125
ZV_prod 8829240
ZV_sum 77
ZV_to_nv 466203
ZV_togglesign 5038349
ZV_zc_mul 2229528
Z_ZC_sub 545810
ZincrementalGS 1187764
Zupdate_row 360085
_ZM_mul 280
_ZM_sqr 23198
_mulii 318570983
add_slices 586464
check_ZV 1932425
nm_Z_mul 0
subtract_slices 513156
sw_bound 14269318
vecsmall_prod 14694393
zmV_to_ZMV 126
zm_to_Flm 22694
zm_to_ZM 156382
zvV_equal 1638
zv_ZM_mul 1736
zv_abs 77
zv_content 18456190
zv_dotproduct 196399119
zv_equal 30877421
zv_equal0 23103436
zv_neg 51606
zv_neg_inplace 126
zv_prod 950593
zv_prod_Z 1864414
zv_sum 16513
zv_sumpart 0
zv_to_Flv 366646
zv_z_mul 28497

Generated by: LCOV version 1.16