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 29466-df46cf9131) Lines: 800 911 87.8 %
Date: 2024-07-27 09:04:25 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 1119
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 21647
ZM_powu 22637
zm_to_Flm 22694
_ZM_sqr 23183
ZM_sqr 24191
ZM_sqr_i 24191
zv_z_mul 28350
zv_neg 51070
ZC_z_mul 61732
ZM_sub 65263
ZM_mul_sw 65540
ZM_equal0 72400
ZC_reducemodlll 98542
ZM_isscalar 103961
ZC_is_ei 106942
ZC_reducemodmatrix 110484
ZC_reducemodmatrix_i 110484
zm_to_ZM 130159
QM_QC_mul 142082
ZM_reducemodmatrix 226911
ZM_reducemodmatrix_i 226911
ZV_ZM_mul 230629
ZV_equal 296314
ZV_content 297319
ZV_neg_inplace 342107
Zupdate_row 362279
ZC_Z_add 363179
zv_to_Flv 366646
ZV_to_nv 400845
ZM_Z_divexact 429806
ZM_hnfdivrem 453838
subtract_slices 458780
ZM_copy 509567
add_slices 524320
ZM_transmultosym 527776
ZM_diag_mul 533512
Z_ZC_sub 544239
QM_mul 548927
ZM_isdiagonal 556011
ZM_isidentity 638005
RgM_check_ZM 640275
ZC_lincomb_1 729317
ZM_add 747615
ZM_ishnf 759244
ZM_zm_mul 949152
zv_prod 949866
ZRED 1033390
ZM_Q_mul 1092249
ZincrementalGS 1183965
RgV_check_ZV 1422196
ZM_neg 1654958
check_ZV 1807292
zv_prod_Z 1864328
ZV_zc_mul 2229528
ZC_Q_mul 2697407
ZM_Z_mul 2984789
ZV_cmp 3132958
ZM_equal 3347264
ZM_det_triangular 3868433
ZC_Z_divexact 4432182
ZC_Z_div 4493181
ZV_togglesign 4920612
ZV_equal_lg 6258312
ZC_neg 6264141
ZV_dotsquare 6636299
ZC_sub 8722487
ZV_prod 8819059
ZC_sub_i 8951871
ZC_hnfremdiv 10690598
ZC_copy 13269453
ZM_mul_classical 14049796
sw_bound 14115319
ZV_equal0 14367989
vecsmall_prod 14694393
ZC_lincomb1 15322628
ZV_dotproduct 16153915
ZM_zc_mul 18989637
ZV_dotproduct_i 19127937
zv_content 20719641
ZM_mul 20963239
ZM_zc_mul_i 20983561
ZM_mul_i 21285564
ZM_ZC_mul 23070962
zv_equal0 23103522
ZC_add 26387899
ZM_max_lg_i 28230067
Flc_lincomb1_inplace 29466242
zv_equal 30837866
ZC_lincomb 32856301
ZC_add_i 34469600
ZC_Z_mul 35109959
ZC_lincomb1_inplace 61212002
ZC_lincomb1_inplace_i 71946513
ZM_ZC_mul_i 74705931
ZV_max_lg_i 109551385
ZMrow_ZC_mul 134540142
zv_dotproduct 196399119
_mulii 318096265
ZMrow_ZC_mul_i 529967926

Generated by: LCOV version 1.16