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.1 lcov report (development 28676-df828f1c94) Lines: 779 875 89.0 %
Date: 2023-08-26 07:54:43 Functions: 122 132 92.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flc_lincomb1_inplace 29163102
QM_QC_mul 133053
QM_mul 538411
QM_sqr 700
RgM_check_ZM 602562
RgV_check_ZV 1415193
ZC_Q_mul 2628308
ZC_ZV_mul 0
ZC_Z_add 361373
ZC_Z_div 1438854
ZC_Z_divexact 9231214
ZC_Z_mul 33870669
ZC_Z_sub 0
ZC_add 25089454
ZC_add_i 34402153
ZC_copy 12642444
ZC_divexactu 2240
ZC_hnfremdiv 11219619
ZC_is_ei 106677
ZC_lincomb 35704465
ZC_lincomb1 17634301
ZC_lincomb1_inplace 81939694
ZC_lincomb1_inplace_i 94144141
ZC_lincomb_1 646257
ZC_neg 3506842
ZC_reducemodlll 98805
ZC_reducemodmatrix 110057
ZC_reducemodmatrix_i 110057
ZC_sub 9212608
ZC_sub_i 9527466
ZC_z_mul 47530
ZMV_to_zmV 49
ZM_Q_mul 1100925
ZM_ZC_mul 23679730
ZM_ZC_mul_i 53989624
ZM_Z_div 14809
ZM_Z_divexact 2074978
ZM_Z_mul 3261448
ZM_add 819408
ZM_copy 516628
ZM_det_triangular 3864870
ZM_diag_mul 530518
ZM_divexactu 434
ZM_equal 1773308
ZM_equal0 70217
ZM_hnfdivrem 453475
ZM_isdiagonal 555404
ZM_ishnf 748757
ZM_isidentity 477651
ZM_isscalar 104812
ZM_max_lg 1596375
ZM_max_lg_i 18503826
ZM_mul 15618558
ZM_mul_classical 8431225
ZM_mul_diag 21
ZM_mul_fast 933
ZM_mul_i 15723913
ZM_mul_slice 1298
ZM_mul_sw 34467
ZM_mul_worker 1298
ZM_multosym 0
ZM_nc_mul_i 0
ZM_neg 319742
ZM_nm_mul 0
ZM_pow 0
ZM_powu 22659
ZM_reducemodlll 0
ZM_reducemodmatrix 226677
ZM_reducemodmatrix_i 226678
ZM_sqr 25186
ZM_sqr_i 25186
ZM_sub 116804
ZM_supnorm 3784
ZM_to_zm 1022
ZM_togglesign 0
ZM_transmul 2220
ZM_transmultosym 526160
ZM_zc_mul 15238253
ZM_zc_mul_i 16970745
ZM_zm_mul 809127
ZMrow_ZC_mul 96628263
ZMrow_ZC_mul_i 407229663
ZMrow_equal0 16683
ZRED 1032650
ZV_ZM_mul 212254
ZV_abscmp 21743
ZV_cmp 2970126
ZV_content 407272
ZV_dotproduct 23136802
ZV_dotproduct_i 23500182
ZV_dotsquare 11076585
ZV_equal 238315
ZV_equal0 1809706
ZV_equal_lg 4467843
ZV_max_lg 10619
ZV_max_lg_i 71995703
ZV_neg_inplace 338359
ZV_prod 8811172
ZV_sum 63
ZV_to_nv 393788
ZV_togglesign 4938251
ZV_zc_mul 2214660
Z_ZC_sub 445315
ZincrementalGS 1182714
Zupdate_row 357736
_ZM_mul 294
_ZM_sqr 23205
_mulii 355912511
add_slices 275736
check_ZV 1736921
nm_Z_mul 0
subtract_slices 241269
sw_bound 8465703
vecsmall_prod 14694393
zmV_to_ZMV 126
zm_to_Flm 22694
zm_to_ZM 135858
zvV_equal 1638
zv_ZM_mul 1624
zv_abs 77
zv_content 13820923
zv_dotproduct 196399119
zv_equal 30762578
zv_equal0 23099724
zv_neg 51329
zv_neg_inplace 126
zv_prod 938822
zv_prod_Z 1861537
zv_sum 16666
zv_sumpart 0
zv_to_Flv 366646
zv_z_mul 28504

Generated by: LCOV version 1.14