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 18607-f2efcf2) Lines: 608 815 74.6 %
Date: 2016-02-12 Functions: 85 113 75.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 309 494 62.6 %

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_mul 0
F2m_F2c_mul_i 802673
F2m_mul 141212
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 1154
Flc_Fl_div 0
Flc_Fl_div_inplace 0
Flc_Fl_mul 727927
Flc_Fl_mul_inplace 0
Flc_Fl_mul_part_inplace 1010508
Flc_to_mod 28
Flm_Fl_add 1624
Flm_Fl_mul 373303
Flm_Fl_mul_inplace 54369
Flm_Flc_mul 740773
Flm_Flc_mul_i 2904142
Flm_Flc_mul_i_2 394686
Flm_Flc_mul_i_SMALL 5358815
Flm_Flc_mul_pre 3342644
Flm_add 13622
Flm_center 7553
Flm_mul 360254
Flm_neg 14
Flm_powu 19628
Flm_sub 0
Flm_to_mod 166
Flm_transpose 3823
Flmrow_Flc_mul_SMALL 141289491
Flmrow_Flc_mul_i 28908133
Flv_add 13489434
Flv_add_inplace 458560
Flv_center 109585
Flv_dotproduct 373303
Flv_dotproduct_pre 0
Flv_dotproductspec_SMALL 769239
Flv_dotproductspec_i 78
Flv_neg 42
Flv_neg_inplace 114
Flv_sub 0
Flv_sub_inplace 0
Flv_sum 3822
Flx_dotproduct 405044
FpC_FpV_mul 1029
FpC_Fp_mul 351183
FpC_add 7348621
FpC_center 181874
FpC_center_inplace 14
FpC_red 3499453
FpC_sub 271726
FpC_to_mod 63
FpM_FpC_mul 435682
FpM_FpC_mul_FpX 272722
FpM_FpC_mul_i 442374
FpM_Fp_mul 267540
FpM_add 267540
FpM_center 49805
FpM_center_inplace 14
FpM_mul 423631
FpM_powu 0
FpM_red 548547
FpM_sub 0
FpM_to_mod 100
FpMs_FpC_mul 0
FpMs_FpCs_solve 0
FpMs_FpCs_solve_safe 0
FpMs_leftkernel_elt 28
FpMs_leftkernel_elt_col 112
FpMs_structelim_back 112
FpVV_to_mod 1820
FpV_FpMs_mul 112
FpV_add 0
FpV_dotproduct 642779
FpV_dotsquare 0
FpV_red 140
FpV_sub 0
FpV_to_mod 3836
FpXQC_to_mod 7
FpX_to_mod 52857
Fp_center_inplace 28
Fp_to_mod 646331
ZMV_to_FlmV 1365
ZM_to_Flm 1527888
ZMrow_ZC_mul_i 9533597
ZV_to_Flv 15706971
ZV_zMs_mul 74200
ZlM_gauss 1950
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 14203
_Flm_sqr 42336
_FpM_mul 0
_FpM_sqr 0
gen_FpM_Wiedemann 112
gen_ZpM_Dixon 0
gen_matid 28
matid_F2m 11184
matid_F2xqM 14
matid_Flm 304149
matid_FlxqM 14
scalar_Flm 42
to_intmod 1227059
vecprow 24857
wrap_relcomb 0
wrap_relcomb_modp 74088
wrap_relker 74088
zCs_to_ZC 0
zMs_ZC_mul 0
zMs_to_ZM 0
zm_mul 238
zm_zc_mul 1338981
zmrow_zc_mul 18113851

Generated by: LCOV version 1.9