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.17.0 lcov report (development 29484-15b3466a01) Lines: 800 911 87.8 %
Date: 2024-09-01 09:02:42 Functions: 122 136 89.7 %
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_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 1120
ZM_mul_worker 1120
zvV_equal 1638
zv_ZM_mul 1736
ZC_divexactu 2261
ZM_transmul 2289
ZM_supnorm 4001
ZV_max_lg 10640
ZM_Z_div 15782
ZMrow_equal0 16241
zv_sum 16444
ZV_abscmp 19740
ZM_max_lg 21647
ZM_powu 22638
zm_to_Flm 22694
_ZM_sqr 23184
ZM_sqr 24192
ZM_sqr_i 24192
zv_z_mul 28354
zv_neg 51066
ZC_z_mul 61736
ZM_sub 65165
ZM_mul_sw 65540
ZM_equal0 72400
ZC_reducemodlll 98541
ZM_isscalar 103943
ZC_is_ei 106942
ZC_reducemodmatrix 110487
ZC_reducemodmatrix_i 110487
zm_to_ZM 130062
QM_QC_mul 142082
ZM_reducemodmatrix 226912
ZM_reducemodmatrix_i 226913
ZV_ZM_mul 230629
ZV_equal 296308
ZV_content 297319
ZV_neg_inplace 342094
Zupdate_row 362274
ZC_Z_add 363163
zv_to_Flv 366646
ZV_to_nv 400835
ZM_Z_divexact 429815
ZM_hnfdivrem 453860
subtract_slices 458780
ZM_copy 509468
add_slices 524320
ZM_transmultosym 527776
ZM_diag_mul 533467
Z_ZC_sub 544234
QM_mul 548927
ZM_isdiagonal 556003
ZM_isidentity 637989
RgM_check_ZM 640274
ZC_lincomb_1 729337
ZM_add 747481
ZM_ishnf 759275
ZM_zm_mul 949056
zv_prod 949867
ZRED 1033301
ZM_Q_mul 1092237
ZincrementalGS 1183910
RgV_check_ZV 1422195
ZM_neg 1654946
check_ZV 1807292
zv_prod_Z 1864330
ZV_zc_mul 2229528
ZC_Q_mul 2697407
ZM_Z_mul 2984573
ZV_cmp 3132929
ZM_equal 3347186
ZM_det_triangular 3868217
ZC_Z_divexact 4431954
ZC_Z_div 4493180
ZV_togglesign 4920149
ZV_equal_lg 6258077
ZC_neg 6264105
ZV_dotsquare 6636060
ZC_sub 8722480
ZV_prod 8819000
ZC_sub_i 8951370
ZC_hnfremdiv 10690497
ZC_copy 13268317
ZM_mul_classical 14049854
sw_bound 14115376
ZV_equal0 14367296
vecsmall_prod 14694393
ZC_lincomb1 15322572
ZV_dotproduct 16153465
ZM_zc_mul 18989335
ZV_dotproduct_i 19127791
zv_content 20719778
ZM_mul 20963204
ZM_zc_mul_i 20982892
ZM_mul_i 21285612
ZM_ZC_mul 23070168
zv_equal0 23103516
ZC_add 26387348
ZM_max_lg_i 28230090
Flc_lincomb1_inplace 29465837
zv_equal 30838034
ZC_lincomb 32855626
ZC_add_i 34468575
ZC_Z_mul 35107969
ZC_lincomb1_inplace 61205490
ZC_lincomb1_inplace_i 71938637
ZM_ZC_mul_i 74703752
ZV_max_lg_i 109551268
ZMrow_ZC_mul 134535627
zv_dotproduct 196399119
_mulii 318095653
ZMrow_ZC_mul_i 529920734

Generated by: LCOV version 1.16