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.1 lcov report (development 29950-285c5b69ed) Lines: 800 938 85.3 %
Date: 2025-02-05 09:09:51 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 839
ZM_to_zm 1022
ZM_mul_slice 1104
ZM_mul_worker 1104
zvV_equal 1638
zv_ZM_mul 1736
ZC_divexactu 2261
ZM_transmul 2289
ZM_supnorm 4197
ZV_max_lg 10640
ZMrow_equal0 16231
zv_sum 16493
ZM_Z_div 18064
ZV_abscmp 19740
ZM_max_lg 22305
zm_to_Flm 22694
ZM_powu 22799
_ZM_sqr 23324
ZM_sqr 24395
ZM_sqr_i 24395
zv_z_mul 28463
zv_neg 51689
ZC_z_mul 62112
ZM_equal0 72442
ZM_mul_sw 73595
ZM_sub 91423
ZC_reducemodlll 97937
ZC_reducemodmatrix 111414
ZC_reducemodmatrix_i 111414
QM_QC_mul 126563
zm_to_ZM 156319
ZM_isscalar 157416
ZC_is_ei 165366
ZM_reducemodmatrix 227022
ZM_reducemodmatrix_i 227022
ZV_ZM_mul 230629
ZV_equal 295279
ZV_content 297360
ZV_neg_inplace 344092
Zupdate_row 360370
ZC_Z_add 365291
zv_to_Flv 366646
ZM_hnfdivrem 454385
ZV_to_nv 466201
ZM_Z_divexact 471504
subtract_slices 515165
ZM_transmultosym 532221
ZM_diag_mul 533980
Z_ZC_sub 545353
ZM_isdiagonal 556623
QM_mul 557793
add_slices 588760
ZM_copy 638629
RgM_check_ZM 650458
ZM_isidentity 654775
ZC_lincomb_1 739714
ZM_ishnf 751686
ZM_add 878634
zv_prod 950583
ZM_zm_mul 975313
ZRED 1035720
ZM_Q_mul 1089403
ZincrementalGS 1187330
RgV_check_ZV 1421564
ZM_neg 1658228
zv_prod_Z 1864470
check_ZV 1930902
ZV_zc_mul 2229528
ZC_Q_mul 2719209
ZV_cmp 3146059
ZM_Z_mul 3215967
ZM_equal 3325364
ZC_Z_div 3664155
ZM_det_triangular 3952521
ZV_togglesign 5035759
ZC_Z_divexact 5271505
ZV_equal_lg 6225847
ZC_neg 6299762
ZV_dotsquare 6659060
ZC_sub 8754690
ZV_prod 8829293
ZC_sub_i 9053913
ZC_hnfdivrem 10748529
ZM_mul_classical 13285558
sw_bound 13359209
ZV_equal0 14389323
vecsmall_prod 14694393
ZC_copy 14703971
ZC_lincomb1 15381578
ZV_dotproduct 16193208
ZM_zc_mul 17213214
zv_content 18454023
ZV_dotproduct_i 19182378
ZM_zc_mul_i 19276929
ZM_mul 20286195
ZM_mul_i 20664662
zv_equal0 23103569
ZM_ZC_mul 24111152
ZC_add 26010719
ZM_max_lg_i 26718210
Flc_lincomb1_inplace 29698979
zv_equal 30987066
ZC_lincomb 33269738
ZC_Z_mul 34629384
ZC_add_i 36131954
ZC_lincomb1_inplace 62134501
ZC_lincomb1_inplace_i 73069747
ZM_ZC_mul_i 74539287
ZV_max_lg_i 108204493
ZMrow_ZC_mul 135143346
zv_dotproduct 196399119
_mulii 318571132
ZMrow_ZC_mul_i 575090949

Generated by: LCOV version 1.16