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

Generated by: LCOV version 1.14