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 29533-68f6ba3cba) Lines: 800 911 87.8 %
Date: 2024-09-16 09:02:59 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 16231
zv_sum 16449
ZV_abscmp 19740
ZM_max_lg 21673
ZM_powu 22652
zm_to_Flm 22694
_ZM_sqr 23198
ZM_sqr 24205
ZM_sqr_i 24205
zv_z_mul 28348
zv_neg 51062
ZC_z_mul 60985
ZM_mul_sw 65540
ZM_equal0 72400
ZM_sub 90571
ZC_reducemodlll 98586
ZC_is_ei 106942
ZC_reducemodmatrix 110530
ZC_reducemodmatrix_i 110530
QM_QC_mul 142096
ZM_isscalar 152708
zm_to_ZM 155467
ZM_reducemodmatrix 226906
ZM_reducemodmatrix_i 226906
ZV_ZM_mul 230629
ZV_equal 296332
ZV_content 297291
ZV_neg_inplace 343567
Zupdate_row 359611
ZC_Z_add 363252
zv_to_Flv 366646
ZV_to_nv 400874
ZM_Z_divexact 430003
ZM_hnfdivrem 453956
subtract_slices 458780
add_slices 524320
ZM_transmultosym 527776
ZM_diag_mul 533491
ZM_copy 539661
Z_ZC_sub 544970
QM_mul 548927
ZM_isdiagonal 556075
ZM_isidentity 637859
RgM_check_ZM 640272
ZC_lincomb_1 739452
ZM_add 746557
ZM_ishnf 759351
zv_prod 949864
ZM_zm_mul 974460
ZRED 1033366
ZM_Q_mul 1094079
ZincrementalGS 1184009
RgV_check_ZV 1422027
ZM_neg 1655208
check_ZV 1807262
zv_prod_Z 1864176
ZV_zc_mul 2229528
ZC_Q_mul 2697387
ZM_Z_mul 2990521
ZV_cmp 3136733
ZM_equal 3351978
ZM_det_triangular 3947795
ZC_Z_divexact 4434357
ZC_Z_div 4501521
ZV_togglesign 4967738
ZV_equal_lg 6261543
ZC_neg 6273399
ZV_dotsquare 6643774
ZC_sub 8741527
ZV_prod 8819077
ZC_sub_i 9032284
ZC_hnfremdiv 10723952
ZC_copy 13326741
ZM_mul_classical 14057243
sw_bound 14122750
ZV_equal0 14416362
vecsmall_prod 14694393
ZC_lincomb1 15364336
ZV_dotproduct 16151999
ZM_zc_mul 17204498
zv_content 18447089
ZV_dotproduct_i 19126291
ZM_zc_mul_i 19259748
ZM_mul 21098226
ZM_mul_i 21420658
zv_equal0 23103410
ZM_ZC_mul 23344027
ZC_add 26398520
ZM_max_lg_i 28245016
Flc_lincomb1_inplace 29462222
zv_equal 30861803
ZC_lincomb 33220475
ZC_add_i 34476231
ZC_Z_mul 35387403
ZC_lincomb1_inplace 61628661
ZC_lincomb1_inplace_i 72365836
ZM_ZC_mul_i 74880391
ZV_max_lg_i 109372018
ZMrow_ZC_mul 134981616
zv_dotproduct 196399119
_mulii 318095522
ZMrow_ZC_mul_i 530076230

Generated by: LCOV version 1.16