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.2 lcov report (development 29465-f396510193) Lines: 800 911 87.8 %
Date: 2024-07-25 09:03:53 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 1119
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 16409
zv_sum 16445
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 28352
zv_neg 51070
ZC_z_mul 61732
ZM_sub 65151
ZM_mul_sw 65540
ZM_equal0 72400
ZC_reducemodlll 98541
ZM_isscalar 103962
ZC_is_ei 106942
ZC_reducemodmatrix 110487
ZC_reducemodmatrix_i 110487
zm_to_ZM 130047
QM_QC_mul 142082
ZM_reducemodmatrix 226907
ZM_reducemodmatrix_i 226907
ZV_ZM_mul 230629
ZV_equal 296304
ZV_content 297322
ZV_neg_inplace 342109
Zupdate_row 362272
ZC_Z_add 363179
zv_to_Flv 366646
ZV_to_nv 400846
ZM_Z_divexact 429817
ZM_hnfdivrem 453865
subtract_slices 458780
ZM_copy 509457
add_slices 524320
ZM_transmultosym 527776
ZM_diag_mul 533483
Z_ZC_sub 544242
QM_mul 548927
ZM_isdiagonal 556010
ZM_isidentity 638057
RgM_check_ZM 640276
ZC_lincomb_1 729303
ZM_add 747540
ZM_ishnf 759289
ZM_zm_mul 949041
zv_prod 949851
ZRED 1033394
ZM_Q_mul 1092252
ZincrementalGS 1183946
RgV_check_ZV 1422200
ZM_neg 1655047
check_ZV 1807294
zv_prod_Z 1864327
ZV_zc_mul 2229528
ZC_Q_mul 2697405
ZM_Z_mul 2984697
ZV_cmp 3132950
ZM_equal 3347248
ZM_det_triangular 3868301
ZC_Z_divexact 4432178
ZC_Z_div 4493177
ZV_togglesign 4919019
ZV_equal_lg 6258198
ZC_neg 6264502
ZV_dotsquare 6636290
ZC_sub 8722259
ZV_prod 8819073
ZC_sub_i 8951504
ZC_hnfremdiv 10690741
ZC_copy 13268627
ZM_mul_classical 14050178
sw_bound 14115929
ZV_equal0 14368470
vecsmall_prod 14694393
ZC_lincomb1 15322893
ZV_dotproduct 16154257
ZM_zc_mul 18989932
ZV_dotproduct_i 19128195
zv_content 20721470
ZM_mul 20963839
ZM_zc_mul_i 20983483
ZM_mul_i 21286176
ZM_ZC_mul 23070992
zv_equal0 23103506
ZC_add 26387477
ZM_max_lg_i 28231315
Flc_lincomb1_inplace 29461390
zv_equal 30837951
ZC_lincomb 32858045
ZC_add_i 34468943
ZC_Z_mul 35109534
ZC_lincomb1_inplace 61215603
ZC_lincomb1_inplace_i 71952648
ZM_ZC_mul_i 74709536
ZV_max_lg_i 109559742
ZMrow_ZC_mul 134539900
zv_dotproduct 196399119
_mulii 318095654
ZMrow_ZC_mul_i 530010023

Generated by: LCOV version 1.16