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 28697-a4113027d0) Lines: 779 875 89.0 %
Date: 2023-09-28 07:47:45 Functions: 122 132 92.4 %
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_multosym 0
ZM_nc_mul_i 0
ZM_nm_mul 0
ZM_pow 0
ZM_reducemodlll 0
ZM_togglesign 0
nm_Z_mul 0
zv_sumpart 0
ZM_mul_diag 21
ZMV_to_zmV 49
ZV_sum 63
zv_abs 77
zmV_to_ZMV 126
zv_neg_inplace 126
_ZM_mul 294
ZM_divexactu 434
QM_sqr 700
ZM_mul_fast 919
ZM_to_zm 1022
ZM_mul_slice 1290
ZM_mul_worker 1290
zv_ZM_mul 1624
zvV_equal 1638
ZC_divexactu 2240
ZM_transmul 2374
ZM_supnorm 3784
ZV_max_lg 10619
ZM_Z_div 14837
ZMrow_equal0 15974
zv_sum 16464
ZV_abscmp 21743
ZM_powu 22658
zm_to_Flm 22694
_ZM_sqr 23204
ZM_sqr 25185
ZM_sqr_i 25185
zv_z_mul 28536
ZM_mul_sw 34294
ZC_z_mul 47565
zv_neg 51343
ZM_equal0 70217
ZC_reducemodlll 98857
ZC_is_ei 106677
ZM_isscalar 106786
ZC_reducemodmatrix 110112
ZC_reducemodmatrix_i 110112
ZM_sub 113211
QM_QC_mul 132926
zm_to_ZM 133650
ZV_ZM_mul 212254
ZM_reducemodmatrix 226672
ZM_reducemodmatrix_i 226676
ZV_equal 238356
subtract_slices 240058
add_slices 274352
ZM_neg 319744
ZV_neg_inplace 340180
Zupdate_row 360455
ZC_Z_add 361330
zv_to_Flv 366646
ZV_to_nv 393789
ZV_content 406300
Z_ZC_sub 444908
ZM_hnfdivrem 453543
ZM_isidentity 477833
ZM_copy 512945
ZM_transmultosym 526314
ZM_diag_mul 530423
QM_mul 538453
ZM_isdiagonal 555388
RgM_check_ZM 599037
ZC_lincomb_1 603207
ZM_ishnf 748502
ZM_zm_mul 806972
ZM_add 818262
zv_prod 939620
ZRED 1032760
ZM_Q_mul 1095677
ZincrementalGS 1182895
RgV_check_ZV 1415234
ZC_Z_div 1446924
ZM_max_lg 1594569
ZV_equal0 1693627
check_ZV 1723207
ZM_equal 1768127
zv_prod_Z 1861627
ZM_Z_divexact 2067920
ZV_zc_mul 2214660
ZC_Q_mul 2629638
ZV_cmp 2963277
ZM_Z_mul 3248661
ZC_neg 3524002
ZM_det_triangular 3862082
ZV_equal_lg 4462795
ZV_togglesign 4989891
ZM_mul_classical 8092644
sw_bound 8126958
ZC_sub 8642899
ZV_prod 8811181
ZC_sub_i 8934434
ZC_Z_divexact 9212645
ZV_dotsquare 10119528
ZC_hnfremdiv 11020588
ZC_copy 12615974
vecsmall_prod 14694393
ZM_mul 15203798
ZM_mul_i 15308008
ZC_lincomb1 17203800
ZM_max_lg_i 17824538
ZV_dotproduct 19741530
ZV_dotproduct_i 20888956
ZM_zc_mul 21344944
ZM_ZC_mul 23015495
ZM_zc_mul_i 23055342
zv_content 23093260
zv_equal0 23099489
ZC_add 24925677
Flc_lincomb1_inplace 29269992
zv_equal 30764970
ZC_Z_mul 33154353
ZC_lincomb 33903706
ZC_add_i 34238390
ZM_ZC_mul_i 51529162
ZV_max_lg_i 68387110
ZC_lincomb1_inplace 79549844
ZC_lincomb1_inplace_i 90016492
ZMrow_ZC_mul 150697062
zv_dotproduct 196399119
_mulii 355912464
ZMrow_ZC_mul_i 444639756

Generated by: LCOV version 1.14