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.1 lcov report (development 28880-3b5364847c) Lines: 779 888 87.7 %
Date: 2023-12-01 07:53:15 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 882
ZM_to_zm 1022
ZM_mul_slice 1215
ZM_mul_worker 1215
zv_ZM_mul 1624
zvV_equal 1638
ZC_divexactu 2261
ZM_transmul 2485
ZM_supnorm 3791
ZV_max_lg 10619
ZM_Z_div 14935
ZMrow_equal0 16185
zv_sum 16429
ZV_abscmp 19677
ZM_max_lg 21619
ZM_powu 22638
zm_to_Flm 22694
_ZM_sqr 23184
ZM_sqr 25165
ZM_sqr_i 25165
zv_z_mul 28486
ZM_mul_sw 42887
zv_neg 51285
ZC_z_mul 60980
ZM_equal0 70187
ZM_sub 76804
ZC_reducemodlll 98454
ZC_is_ei 105829
ZC_reducemodmatrix 110408
ZC_reducemodmatrix_i 110408
ZM_isscalar 113005
QM_QC_mul 132884
zm_to_ZM 136640
ZV_ZM_mul 212415
ZM_reducemodmatrix 226757
ZM_reducemodmatrix_i 226758
ZV_equal 238483
subtract_slices 300209
add_slices 343096
ZV_neg_inplace 344111
Zupdate_row 358724
ZC_Z_add 362971
zv_to_Flv 366646
ZV_to_nv 393836
ZV_content 404905
ZM_Z_divexact 427177
Z_ZC_sub 444867
ZM_hnfdivrem 453677
ZM_copy 517890
ZM_transmultosym 525425
ZM_diag_mul 530725
QM_mul 536873
ZM_isdiagonal 555721
RgM_check_ZM 598949
ZC_lincomb_1 604907
ZM_isidentity 622093
ZM_add 741471
ZM_ishnf 748912
ZM_zm_mul 809971
zv_prod 940284
ZRED 1032856
ZM_Q_mul 1097242
ZincrementalGS 1183248
RgV_check_ZV 1415322
ZC_Z_div 1444015
ZM_neg 1624496
check_ZV 1713496
zv_prod_Z 1861755
ZV_zc_mul 2214660
ZC_Q_mul 2625752
ZM_Z_mul 2848725
ZV_cmp 2973764
ZM_equal 3188124
ZM_det_triangular 3869645
ZC_Z_divexact 4409484
ZV_togglesign 4993908
ZC_neg 5872027
ZV_equal_lg 6090131
ZV_dotsquare 6625803
ZV_equal0 8416376
ZV_prod 8813257
ZC_sub 9327329
ZC_sub_i 9583413
ZC_hnfremdiv 11409336
ZC_copy 12610436
ZM_mul_classical 13893878
sw_bound 13936760
vecsmall_prod 14694393
ZV_dotproduct 16188484
ZC_lincomb1 17864789
ZM_zc_mul 18930616
ZV_dotproduct_i 19080976
ZM_mul 20560202
zv_content 20570625
ZM_zc_mul_i 20649563
ZM_mul_i 20724275
ZM_ZC_mul 23057426
zv_equal0 23099236
ZC_add 25187977
ZM_max_lg_i 27871201
Flc_lincomb1_inplace 29072806
zv_equal 30776641
ZC_add_i 33187556
ZC_Z_mul 33187682
ZC_lincomb 35738218
ZM_ZC_mul_i 73977317
ZC_lincomb1_inplace 79453788
ZC_lincomb1_inplace_i 89952936
ZV_max_lg_i 107236499
ZMrow_ZC_mul 151124116
zv_dotproduct 196399119
_mulii 356225181
ZMrow_ZC_mul_i 540683172

Generated by: LCOV version 1.14