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 20443-183d202) Lines: 646 846 76.4 %
Date: 2017-03-27 05:17:48 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 134235
F2m_mul 30895
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 19430
Flc_to_mod 20
Flm_Fl_add 5630
Flm_Fl_mul 3965430
Flm_Fl_mul_inplace 17870
Flm_Flc_mul 278905
Flm_Flc_mul_i 12315755
Flm_Flc_mul_i_2 102905
Flm_Flc_mul_i_SMALL 18352370
Flm_Flc_mul_pre 3440
Flm_Flc_mul_pre_Flx 4685575
Flm_add 10400
Flm_center 5640
Flm_mul 3338105
Flm_neg 74230
Flm_powu 14030
Flm_sub 4421155
Flm_to_mod 190
Flm_transpose 164095
Flmrow_Flc_mul_SMALL 210708710
Flmrow_Flc_mul_i 72936405
Flv_Fl_div 2035
Flv_Fl_div_inplace 0
Flv_Fl_mul 549280
Flv_Fl_mul_inplace 0
Flv_Fl_mul_part_inplace 1111366
Flv_add 679910
Flv_add_inplace 114740
Flv_center 79780
Flv_dotproduct 266685
Flv_dotproduct_pre 31700
Flv_dotproductspec_SMALL 573150
Flv_dotproductspec_i 360
Flv_neg 863855
Flv_neg_inplace 2435
Flv_sub 44214605
Flv_sub_inplace 0
Flv_sum 2730
Flx_dotproduct 281470
FpC_FpV_mul 985
FpC_Fp_mul 751515
FpC_add 280410
FpC_center 327830
FpC_center_inplace 10
FpC_red 6081819
FpC_sub 239875
FpC_to_mod 45
FpM_FpC_mul 713415
FpM_FpC_mul_FpX 80820
FpM_FpC_mul_i 716650
FpM_Fp_mul 1055
FpM_add 0
FpM_center 35575
FpM_center_inplace 10
FpM_mul 255540
FpM_powu 0
FpM_red 1241881
FpM_sub 0
FpM_to_mod 70
FpMs_FpC_mul 0
FpMs_FpCs_solve 0
FpMs_FpCs_solve_safe 0
FpMs_leftkernel_elt 25
FpMs_leftkernel_elt_col 85
FpMs_structelim_back 85
FpVV_to_mod 1300
FpV_FpMs_mul 85
FpV_add 0
FpV_dotproduct 522799
FpV_dotsquare 0
FpV_red 144295
FpV_sub 0
FpV_to_mod 3050
FpXQC_to_mod 5
FpX_to_mod 38250
Fp_center_inplace 20
Fp_to_mod 197695
ZMV_to_FlmV 980
ZM_to_Flm 2260760
ZMrow_ZC_mul_i 11219565
ZV_to_Flv 13495090
ZV_zMs_mul 54485
ZlM_gauss 304375
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 10155
_Flm_sqr 30250
_FpM_mul 0
_FpM_sqr 0
__Flm_Flc_mul_i 14588645
__Flm_Flc_mul_i_SMALL 20768495
gen_FpM_Wiedemann 85
gen_ZpM_Dixon 0
gen_matid 400
matid_F2m 6605
matid_F2xqM 25
matid_Flm 562630
matid_FlxqM 375
random_Flv 2115
random_FpC 20
random_FpV 0
scalar_Flm 30
to_intmod 907350
vecprow 18250
wrap_relcomb 0
wrap_relcomb_modp 54400
wrap_relker 54400
zCs_to_ZC 0
zMs_ZC_mul 0
zMs_to_ZM 0
zm_mul 180
zm_zc_mul 1180875
zmrow_zc_mul 15453945

Generated by: LCOV version 1.11