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 20459-9710128) Lines: 646 846 76.4 %
Date: 2017-04-27 05:33:52 Functions: 93 119 78.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 161082
F2m_mul 37074
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 23316
Flc_to_mod 24
Flm_Fl_add 6756
Flm_Fl_mul 4758516
Flm_Fl_mul_inplace 21444
Flm_Flc_mul 334686
Flm_Flc_mul_i 14778906
Flm_Flc_mul_i_2 123486
Flm_Flc_mul_i_SMALL 22022844
Flm_Flc_mul_pre 4128
Flm_Flc_mul_pre_Flx 5601319
Flm_add 12480
Flm_center 6768
Flm_mul 4005726
Flm_neg 89076
Flm_powu 16836
Flm_sub 5305386
Flm_to_mod 228
Flm_transpose 198035
Flmrow_Flc_mul_SMALL 252686725
Flmrow_Flc_mul_i 87491569
Flv_Fl_div 2442
Flv_Fl_div_inplace 0
Flv_Fl_mul 659136
Flv_Fl_mul_inplace 0
Flv_Fl_mul_part_inplace 1333643
Flv_add 815892
Flv_add_inplace 137688
Flv_center 95736
Flv_dotproduct 320022
Flv_dotproduct_pre 38039
Flv_dotproductspec_SMALL 687911
Flv_dotproductspec_i 432
Flv_neg 1036626
Flv_neg_inplace 2879
Flv_sub 53057526
Flv_sub_inplace 0
Flv_sum 3276
Flx_dotproduct 337832
FpC_FpV_mul 1182
FpC_Fp_mul 901834
FpC_add 336492
FpC_center 393396
FpC_center_inplace 12
FpC_red 7300049
FpC_sub 287866
FpC_to_mod 54
FpM_FpC_mul 856098
FpM_FpC_mul_FpX 96984
FpM_FpC_mul_i 859980
FpM_Fp_mul 1266
FpM_add 0
FpM_center 42690
FpM_center_inplace 12
FpM_mul 306648
FpM_powu 0
FpM_red 1490266
FpM_sub 0
FpM_to_mod 84
FpMs_FpC_mul 0
FpMs_FpCs_solve 0
FpMs_FpCs_solve_safe 0
FpMs_leftkernel_elt 30
FpMs_leftkernel_elt_col 110
FpMs_structelim_back 110
FpVV_to_mod 1560
FpV_FpMs_mul 110
FpV_add 0
FpV_dotproduct 627386
FpV_dotsquare 0
FpV_red 173162
FpV_sub 0
FpV_to_mod 3660
FpXQC_to_mod 6
FpX_to_mod 45900
Fp_center_inplace 24
Fp_to_mod 242361
ZMV_to_FlmV 1176
ZM_to_Flm 2712903
ZMrow_ZC_mul_i 13463478
ZV_to_Flv 16194265
ZV_zMs_mul 67222
ZlM_gauss 365250
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 12186
_Flm_sqr 36300
_FpM_mul 0
_FpM_sqr 0
__Flm_Flc_mul_i 17504356
__Flm_Flc_mul_i_SMALL 24921529
gen_FpM_Wiedemann 110
gen_ZpM_Dixon 0
gen_matid 480
matid_F2m 7926
matid_F2xqM 30
matid_Flm 675156
matid_FlxqM 450
random_Flv 2538
random_FpC 24
random_FpV 0
scalar_Flm 36
to_intmod 1088820
vecprow 22520
wrap_relcomb 0
wrap_relcomb_modp 67112
wrap_relker 67112
zCs_to_ZC 0
zMs_ZC_mul 0
zMs_to_ZM 0
zm_mul 216
zm_zc_mul 1417050
zmrow_zc_mul 18544734

Generated by: LCOV version 1.11