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 29463-1101ba1c32) Lines: 800 911 87.8 %
Date: 2024-07-22 09:03:30 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 16409
zv_sum 16444
ZV_abscmp 19740
ZM_max_lg 21646
ZM_powu 22638
zm_to_Flm 22694
_ZM_sqr 23184
ZM_sqr 24192
ZM_sqr_i 24192
zv_z_mul 28356
zv_neg 51068
ZC_z_mul 61735
ZM_sub 65224
ZM_mul_sw 65491
ZM_equal0 72400
ZC_reducemodlll 98540
ZM_isscalar 103966
ZC_is_ei 106942
ZC_reducemodmatrix 110483
ZC_reducemodmatrix_i 110483
zm_to_ZM 130120
QM_QC_mul 142082
ZM_reducemodmatrix 226919
ZM_reducemodmatrix_i 226920
ZV_ZM_mul 230629
ZV_equal 296308
ZV_content 297319
ZV_neg_inplace 342121
Zupdate_row 362299
ZC_Z_add 363183
zv_to_Flv 366646
ZV_to_nv 400839
ZM_Z_divexact 429819
ZM_hnfdivrem 453846
subtract_slices 458437
ZM_copy 509532
add_slices 523928
ZM_transmultosym 527937
ZM_diag_mul 533483
Z_ZC_sub 544236
QM_mul 548927
ZM_isdiagonal 556021
ZM_isidentity 638010
RgM_check_ZM 640277
ZC_lincomb_1 729337
ZM_add 747628
ZM_ishnf 759285
ZM_zm_mul 949114
zv_prod 949866
ZRED 1033415
ZM_Q_mul 1092263
ZincrementalGS 1183944
RgV_check_ZV 1422198
ZM_neg 1655002
check_ZV 1807293
zv_prod_Z 1864328
ZV_zc_mul 2229528
ZC_Q_mul 2697411
ZM_Z_mul 2984862
ZV_cmp 3132924
ZM_equal 3347299
ZM_det_triangular 3868340
ZC_Z_divexact 4431859
ZC_Z_div 4493199
ZV_togglesign 4921514
ZV_equal_lg 6258283
ZC_neg 6264336
ZV_dotsquare 6636329
ZC_sub 8722391
ZV_prod 8819088
ZC_sub_i 8951647
ZC_hnfremdiv 10690631
ZC_copy 13269281
ZM_mul_classical 14049773
sw_bound 14115247
ZV_equal0 14368296
vecsmall_prod 14694393
ZC_lincomb1 15322679
ZV_dotproduct 16154182
ZM_zc_mul 18989773
ZV_dotproduct_i 19199194
zv_content 20720097
ZM_mul 20963496
ZM_zc_mul_i 20983617
ZM_mul_i 21285573
ZM_ZC_mul 23071127
zv_equal0 23103514
ZC_add 26387496
ZM_max_lg_i 28229896
Flc_lincomb1_inplace 29465996
zv_equal 30837808
ZC_lincomb 32857500
ZC_add_i 34469022
ZC_Z_mul 35110029
ZC_lincomb1_inplace 61218389
ZC_lincomb1_inplace_i 71953958
ZM_ZC_mul_i 74700049
ZV_max_lg_i 109535514
ZMrow_ZC_mul 134542693
zv_dotproduct 196399119
_mulii 318095801
ZMrow_ZC_mul_i 529816164

Generated by: LCOV version 1.16