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.8.0 lcov report (development 18946-c0ba5ba) Lines: 610 815 74.8 %
Date: 2016-05-26 Functions: 85 113 75.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 311 494 63.0 %

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_mul 0
F2m_F2c_mul_i 810275
F2m_mul 144691
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 1154
Flc_to_mod 28
Flm_Fl_add 5866
Flm_Fl_mul 373303
Flm_Fl_mul_inplace 52143
Flm_Flc_mul 743860
Flm_Flc_mul_i 2921517
Flm_Flc_mul_i_2 396016
Flm_Flc_mul_i_SMALL 5368436
Flm_Flc_mul_pre 3335877
Flm_add 13622
Flm_center 7896
Flm_mul 369247
Flm_neg 14
Flm_powu 19628
Flm_sub 0
Flm_to_mod 166
Flm_transpose 4063
Flmrow_Flc_mul_SMALL 141076376
Flmrow_Flc_mul_i 30209277
Flv_Fl_div 0
Flv_Fl_div_inplace 0
Flv_Fl_mul 728074
Flv_Fl_mul_inplace 0
Flv_Fl_mul_part_inplace 994335
Flv_add 130418190
Flv_add_inplace 460534
Flv_center 111678
Flv_dotproduct 373303
Flv_dotproduct_pre 0
Flv_dotproductspec_SMALL 768440
Flv_dotproductspec_i 84
Flv_neg 42
Flv_neg_inplace 114
Flv_sub 0
Flv_sub_inplace 0
Flv_sum 3822
Flx_dotproduct 404258
FpC_FpV_mul 1043
FpC_Fp_mul 353640
FpC_add 7348621
FpC_center 181874
FpC_center_inplace 14
FpC_red 3503282
FpC_sub 271726
FpC_to_mod 63
FpM_FpC_mul 439343
FpM_FpC_mul_FpX 276579
FpM_FpC_mul_i 446035
FpM_Fp_mul 267540
FpM_add 267540
FpM_center 49805
FpM_center_inplace 14
FpM_mul 427411
FpM_powu 0
FpM_red 550402
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 656023
FpV_dotsquare 0
FpV_red 133119
FpV_sub 0
FpV_to_mod 4018
FpXQC_to_mod 7
FpX_to_mod 53508
Fp_center_inplace 28
Fp_to_mod 660435
ZMV_to_FlmV 1365
ZM_to_Flm 1531127
ZMrow_ZC_mul_i 9554513
ZV_to_Flv 15714101
ZV_zMs_mul 74200
ZlM_gauss 1978
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 12801
matid_F2xqM 14
matid_Flm 307026
matid_FlxqM 14
scalar_Flm 42
to_intmod 1269493
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 252
zm_zc_mul 1653239
zmrow_zc_mul 21635677

Generated by: LCOV version 1.9