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-bordeaux1.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.8.0 lcov report (development 17589-6eff849) Lines: 585 790 74.1 %
Date: 2015-03-05 Functions: 80 107 74.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 296 484 61.2 %

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_mul 0
F2m_F2c_mul_i 724231
F2m_mul 115051
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 1154
Flc_Fl_div 0
Flc_Fl_div_inplace 0
Flc_Fl_mul 726682
Flc_Fl_mul_inplace 0
Flc_Fl_mul_part_inplace 1002347
Flc_to_mod 28
Flm_Fl_add 1442
Flm_Fl_mul 372519
Flm_Fl_mul_inplace 49063
Flm_Flc_mul 713186
Flm_Flc_mul_i 134269
Flm_Flc_mul_i_2 394672
Flm_Flc_mul_i_SMALL 5134740
Flm_Flc_mul_pre 741107
Flm_add 13608
Flm_center 6230
Flm_mul 314370
Flm_neg 14
Flm_powu 19432
Flm_to_mod 166
Flm_transpose 6774
Flmrow_Flc_mul_SMALL 136516959
Flmrow_Flc_mul_i 1692570
Flv_add 664972
Flv_add_inplace 423131
Flv_center 90881
Flv_dotproduct 372519
Flv_dotproduct_SMALL 372519
Flv_dotproduct_i 0
Flv_dotproduct_pre 0
Flv_sub 0
Flv_sub_inplace 0
Flv_sum 3815
FpC_FpV_mul 980
FpC_Fp_mul 37996
FpC_add 3152856
FpC_center 181671
FpC_center_inplace 14
FpC_red 3407372
FpC_sub 101255
FpC_to_mod 63
FpM_FpC_mul 110406
FpM_FpC_mul_FpX 187980
FpM_FpC_mul_i 117098
FpM_Fp_mul 116739
FpM_add 116739
FpM_center 49756
FpM_center_inplace 14
FpM_mul 355334
FpM_powu 0
FpM_red 565951
FpM_to_mod 100
FpMs_FpC_mul 0
FpMs_FpCs_solve 0
FpMs_FpCs_solve_safe 0
FpMs_leftkernel_elt 70
FpMs_structelim_back 70
FpVV_to_mod 1820
FpV_FpMs_mul 70
FpV_add 0
FpV_dotproduct 500875
FpV_dotsquare 0
FpV_red 70
FpV_sub 0
FpV_to_mod 3738
FpXQC_to_mod 7
FpX_to_mod 52843
Fp_center_inplace 28
Fp_to_mod 281143
ZMV_to_FlmV 1337
ZM_to_Flm 1336369
ZMrow_ZC_mul_i 1543836
ZV_to_Flv 14316860
ZV_zMs_mul 66507
ZlM_gauss 1901
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 14203
_Flm_sqr 42056
_FpM_mul 0
_FpM_sqr 0
gen_FpM_Wiedemann 70
gen_ZpM_Dixon 0
gen_matid 28
matid_F2m 10906
matid_F2xqM 14
matid_Flm 288393
matid_FlxqM 14
scalar_Flm 28
to_intmod 1226639
vecprow 22169
wrap_relcomb 0
wrap_relcomb_modp 66437
wrap_relker 66437
zCs_to_ZC 0
zMs_ZC_mul 0
zMs_to_ZM 0
zm_mul 56
zm_zc_mul 1196475
zmrow_zc_mul 15976009

Generated by: LCOV version 1.9