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 21196-f12677d) Lines: 643 848 75.8 %
Date: 2017-10-22 06:23:24 Functions: 92 119 77.3 %
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 292903
F2m_mul 61023
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 27194
Flc_to_mod 28
Flm_Fl_add 7560
Flm_Fl_mul 8441196
Flm_Fl_mul_inplace 0
Flm_Flc_mul 344412
Flm_Flc_mul_i 38196529
Flm_Flc_mul_i_2 82474
Flm_Flc_mul_i_SMALL 22648372
Flm_Flc_mul_pre 4816
Flm_Flc_mul_pre_Flx 6979530
Flm_add 6965
Flm_center 7896
Flm_mul 6656882
Flm_neg 169237
Flm_powu 14714
Flm_sub 9297275
Flm_to_mod 264
Flm_transpose 368376
Flmrow_Flc_mul_SMALL 198060649
Flmrow_Flc_mul_i 209395958
Flv_Fl_div 329
Flv_Fl_div_inplace 0
Flv_Fl_mul 382296
Flv_Fl_mul_inplace 0
Flv_Fl_mul_part_inplace 1544959
Flv_add 527919
Flv_add_inplace 168260
Flv_center 111692
Flv_dotproduct 260246
Flv_dotproduct_pre 53460
Flv_dotproductspec_SMALL 697902
Flv_dotproductspec_i 5542
Flv_neg 1845540
Flv_neg_inplace 5289
Flv_sub 96695433
Flv_sub_inplace 0
Flv_sum 3822
Flx_dotproduct 399720
FpC_FpV_mul 1540
FpC_Fp_mul 622202
FpC_add 137053
FpC_center 912749
FpC_center_inplace 14
FpC_red 8047897
FpC_sub 199388
FpC_to_mod 63
FpM_FpC_mul 895678
FpM_FpC_mul_FpX 324964
FpM_FpC_mul_i 940451
FpM_Fp_mul 1351
FpM_add 0
FpM_center 142825
FpM_center_inplace 14
FpM_mul 376067
FpM_powu 0
FpM_red 1783482
FpM_sub 0
FpM_to_mod 100
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 1820
FpV_FpMs_mul 119
FpV_add 0
FpV_dotproduct 2200562
FpV_dotsquare 0
FpV_red 202013
FpV_sub 0
FpV_to_mod 4550
FpXQC_to_mod 7
FpX_to_mod 684458
Fp_center_inplace 28
Fp_to_mod 291970
ZMV_to_FlmV 1309
ZM_to_Flm 3586721
ZMrow_ZC_mul_i 11474737
ZV_to_Flv 17541772
ZV_zMs_mul 75357
ZlM_gauss 514403
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 8099
_Flm_sqr 27342
_FpM_mul 0
_FpM_sqr 0
__Flm_Flc_mul_i 42369387
__Flm_Flc_mul_i_SMALL 25773184
gen_FpM_Wiedemann 119
gen_ZpM_Dixon 0
gen_matid 1841
matid_F2m 12852
matid_F2xqM 35
matid_Flm 987953
matid_FlxqM 1806
random_Flv 3381
random_FpC 140
random_FpV 0
scalar_Flm 42
to_intmod 7168592
vecprow 25217
wrap_relcomb 0
wrap_relcomb_modp 75238
wrap_relker 75238
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