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 19837-cc815bb) Lines: 635 832 76.3 %
Date: 2016-12-10 05:49:10 Functions: 91 116 78.4 %
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 224471
F2m_mul 48297
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 1154
Flc_to_mod 28
Flm_Fl_add 7028
Flm_Fl_mul 373079
Flm_Fl_mul_inplace 24985
Flm_Flc_mul 386099
Flm_Flc_mul_i 1117630
Flm_Flc_mul_i_2 142520
Flm_Flc_mul_i_SMALL 4926277
Flm_Flc_mul_pre 4816
Flm_Flc_mul_pre_Flx 6756575
Flm_add 14651
Flm_center 7896
Flm_mul 1419819
Flm_neg 14
Flm_powu 19614
Flm_sub 0
Flm_to_mod 166
Flm_transpose 4201
Flmrow_Flc_mul_SMALL 179944528
Flmrow_Flc_mul_i 48637218
Flv_Fl_div 329
Flv_Fl_div_inplace 0
Flv_Fl_mul 756834
Flv_Fl_mul_inplace 0
Flv_Fl_mul_part_inplace 1538261
Flv_add 130458678
Flv_add_inplace 160770
Flv_center 111678
Flv_dotproduct 373079
Flv_dotproduct_pre 44458
Flv_dotproductspec_SMALL 787951
Flv_dotproductspec_i 4790
Flv_neg 42
Flv_neg_inplace 3347
Flv_sub 301
Flv_sub_inplace 0
Flv_sum 3822
Flx_dotproduct 384256
FpC_FpV_mul 1127
FpC_Fp_mul 403807
FpC_add 8647604
FpC_center 181874
FpC_center_inplace 14
FpC_red 3359526
FpC_sub 271808
FpC_to_mod 63
FpM_FpC_mul 459177
FpM_FpC_mul_FpX 112584
FpM_FpC_mul_i 465859
FpM_Fp_mul 299586
FpM_add 299586
FpM_center 49805
FpM_center_inplace 14
FpM_mul 323317
FpM_powu 0
FpM_red 431402
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 118
FpMs_structelim_back 118
FpVV_to_mod 1820
FpV_FpMs_mul 118
FpV_add 0
FpV_dotproduct 730406
FpV_dotsquare 0
FpV_red 202012
FpV_sub 0
FpV_to_mod 4088
FpXQC_to_mod 7
FpX_to_mod 53508
Fp_center_inplace 28
Fp_to_mod 281595
ZMV_to_FlmV 1365
ZM_to_Flm 3118521
ZMrow_ZC_mul_i 9097953
ZV_to_Flv 19013671
ZV_zMs_mul 76203
ZlM_gauss 440441
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 14189
_Flm_sqr 42308
_FpM_mul 0
_FpM_sqr 0
__Flm_Flc_mul_i 4974824
__Flm_Flc_mul_i_SMALL 7854476
gen_FpM_Wiedemann 118
gen_ZpM_Dixon 0
gen_matid 28
matid_F2m 9177
matid_F2xqM 14
matid_Flm 691858
matid_FlxqM 14
scalar_Flm 42
to_intmod 1269563
vecprow 25514
wrap_relcomb 0
wrap_relcomb_modp 76085
wrap_relker 76085
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