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 17404-c89e0b8) Lines: 573 790 72.5 %
Date: 2015-01-30 Functions: 77 107 72.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 288 484 59.5 %

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_mul 0
F2m_F2c_mul_i 717441
F2m_mul 113667
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 1084
Flc_Fl_div 0
Flc_Fl_div_inplace 0
Flc_Fl_mul 422230
Flc_Fl_mul_inplace 0
Flc_Fl_mul_part_inplace 1006148
Flc_to_mod 28
Flm_Fl_add 1442
Flm_Fl_mul 198065
Flm_Fl_mul_inplace 47292
Flm_Flc_mul 539138
Flm_Flc_mul_i 133782
Flm_Flc_mul_i_2 322012
Flm_Flc_mul_i_SMALL 2934444
Flm_Flc_mul_pre 741106
Flm_add 9464
Flm_center 6230
Flm_mul 239675
Flm_neg 14
Flm_powu 13055
Flm_to_mod 152
Flm_transpose 5682
Flmrow_Flc_mul_SMALL 50186497
Flmrow_Flc_mul_i 1687258
Flv_add 408044
Flv_add_inplace 420903
Flv_center 90881
Flv_dotproduct 198065
Flv_dotproduct_SMALL 198065
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 51065
FpC_add 598857
FpC_center 181685
FpC_center_inplace 0
FpC_red 2880231
FpC_sub 75411
FpC_to_mod 63
FpM_FpC_mul 124203
FpM_FpC_mul_FpX 187910
FpM_FpC_mul_i 130907
FpM_Fp_mul 46823
FpM_add 46823
FpM_center 49770
FpM_center_inplace 0
FpM_mul 300711
FpM_powu 0
FpM_red 552453
FpM_to_mod 86
FpMs_FpC_mul 0
FpMs_FpCs_solve 0
FpMs_FpCs_solve_safe 0
FpMs_leftkernel_elt 49
FpMs_structelim_back 49
FpVV_to_mod 1813
FpV_FpMs_mul 49
FpV_add 0
FpV_dotproduct 442012
FpV_dotsquare 0
FpV_red 49
FpV_sub 0
FpV_to_mod 3640
FpXQC_to_mod 7
FpX_to_mod 52815
Fp_center_inplace 0
Fp_to_mod 275989
ZMV_to_FlmV 1008
ZM_to_Flm 1214731
ZMrow_ZC_mul_i 1770005
ZV_to_Flv 10722031
ZV_zMs_mul 55335
ZlM_gauss 1894
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 9345
_Flm_sqr 26033
_FpM_mul 0
_FpM_sqr 0
gen_FpM_Wiedemann 49
gen_ZpM_Dixon 0
gen_matid 14
matid_F2m 10701
matid_F2xqM 7
matid_Flm 283614
matid_FlxqM 7
scalar_Flm 28
to_intmod 1226366
vecprow 18445
wrap_relcomb 0
wrap_relcomb_modp 55286
wrap_relker 55286
zCs_to_ZC 0
zMs_ZC_mul 0
zMs_to_ZM 0
zm_mul 56
zm_zc_mul 1196468
zmrow_zc_mul 15975995

Generated by: LCOV version 1.9