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 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 - FpV.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21741-70cf009) Lines: 722 936 77.1 %
Date: 2018-01-21 06:18:30 Functions: 105 131 80.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_mul 0
F2m_F2c_mul_i 292203
F2m_mul 61093
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 19376
Flc_Flv_mul 7
Flc_to_mod 28
Flm_Fl_add 8092
Flm_Fl_mul 6717190
Flm_Fl_mul_inplace 0
Flm_Flc_mul 208664
Flm_Flc_mul_i 19940268
Flm_Flc_mul_i_2 82593
Flm_Flc_mul_i_SMALL 20320559
Flm_Flc_mul_pre 4814
Flm_Flc_mul_pre_Flx 7316661
Flm_add 6993
Flm_center 7896
Flm_mul 5933514
Flm_mul_classical 5938986
Flm_mul_i 5939914
Flm_mul_sw 935
Flm_neg 168553
Flm_powers 126
Flm_powu 14658
Flm_sub 7722171
Flm_to_mod 189
Flm_transpose 365782
Flmrow_Flc_mul_SMALL 194964947
Flmrow_Flc_mul_i 124987825
Flv_Fl_div 422
Flv_Fl_div_inplace 0
Flv_Fl_mul 433829
Flv_Fl_mul_inplace 0
Flv_Fl_mul_part_inplace 1539773
Flv_add 629007
Flv_add_inplace 168344
Flv_center 111692
Flv_dotproduct 254618
Flv_dotproduct_pre 53460
Flv_dotproductspec_SMALL 692603
Flv_dotproductspec_i 5542
Flv_neg 1812622
Flv_neg_inplace 5248
Flv_sub 60198920
Flv_sub_inplace 0
Flv_sum 3822
Flx_dotproduct 400600
FpC_FpV_mul 1540
FpC_Fp_mul 622335
FpC_add 137144
FpC_center 1216696
FpC_center_inplace 14
FpC_red 9204714
FpC_sub 199507
FpC_to_mod 63
FpM_FpC_mul 895831
FpM_FpC_mul_FpX 325048
FpM_FpC_mul_i 941465
FpM_Fp_mul 111414
FpM_add 0
FpM_center 152874
FpM_center_inplace 14
FpM_mul 376681
FpM_powu 0
FpM_red 1773930
FpM_sub 0
FpM_to_mod 56392
FpMs_FpC_mul 0
FpMs_FpCs_solve 0
FpMs_FpCs_solve_safe 0
FpMs_leftkernel_elt 35
FpMs_leftkernel_elt_col 119
FpMs_structelim_back 119
FpVV_to_mod 1827
FpV_FpMs_mul 119
FpV_add 0
FpV_dotproduct 1349083
FpV_dotsquare 0
FpV_red 207830
FpV_sub 0
FpV_to_mod 4662
FpXQC_to_mod 7
FpX_to_mod 1132934
Fp_center_inplace 28
Fp_to_mod 289306
FqC_to_mod_raw 2660
FqM_to_mod 196
Fq_to_mod_raw 61208
ZMV_to_FlmV 1302
ZM_to_Flm 3749245
ZMrow_ZC_mul_i 11490393
ZV_to_Flv 17644121
ZV_zMs_mul 75363
ZlM_gauss 602386
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 8099
_Flm_one 126
_Flm_sqr 27279
_FpM_mul 0
_FpM_sqr 0
__Flm_Flc_mul_i 24128828
__Flm_Flc_mul_i_SMALL 23477826
add_slices 3740
add_slices_ip 7480
gen_FpM_Wiedemann 119
gen_ZpM_Dixon 0
gen_matid 1883
matid_F2m 12873
matid_F2xqM 35
matid_Flm 950345
matid_FlxqM 1848
random_Flv 3416
random_FpC 182
random_FpV 119
scalar_Flm 42
subtract_slices 6545
to_intmod 9339053
vecprow 25219
wrap_relcomb 0
wrap_relcomb_modp 75244
wrap_relker 75244
zCs_to_ZC 0
zMs_ZC_mul 0
zMs_to_ZM 0
zm_mul 252
zm_zc_mul 1653225
zmrow_zc_mul 21635523

Generated by: LCOV version 1.11