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 17110-9967e23) Lines: 519 753 68.9 %
Date: 2014-11-26 Functions: 67 100 67.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 265 464 57.1 %

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_mul 0
F2m_F2c_mul_i 491805
F2m_mul 75605
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 772
Flc_Fl_div 0
Flc_Fl_div_inplace 0
Flc_Fl_mul 15045
Flc_Fl_mul_inplace 0
Flc_Fl_mul_part_inplace 706370
Flc_to_mod 20
Flm_Fl_add 980
Flm_Fl_mul 0
Flm_Fl_mul_inplace 27875
Flm_Flc_mul 241721
Flm_Flc_mul_i 112965
Flm_Flc_mul_i_2 184431
Flm_Flc_mul_i_SMALL 893040
Flm_Flc_mul_pre 529360
Flm_center 4450
Flm_mul 96066
Flm_neg 10
Flm_powu 0
Flm_to_mod 108
Flm_transpose 4013
Flmrow_Flc_mul_SMALL 11285906
Flmrow_Flc_mul_i 1387723
Flv_add 2150
Flv_add_inplace 298681
Flv_center 64915
Flv_dotproduct 0
Flv_dotproduct_SMALL 0
Flv_dotproduct_i 0
Flv_dotproduct_pre 0
Flv_sub 0
Flv_sub_inplace 0
Flv_sum 2730
FpC_FpV_mul 675
FpC_Fp_mul 2285
FpC_add 160
FpC_center 129775
FpC_red 1689947
FpC_sub 70
FpC_to_mod 45
FpM_FpC_mul 50107
FpM_FpC_mul_FpX 125563
FpM_FpC_mul_i 50786
FpM_center 35550
FpM_mul 160376
FpM_powu 0
FpM_red 367354
FpM_to_mod 62
FpMs_FpC_mul 0
FpMs_FpCs_solve 0
FpMs_FpCs_solve_safe 0
FpMs_leftkernel_elt 35
FpMs_structelim_back 35
FpVV_to_mod 1295
FpV_FpMs_mul 35
FpV_add 0
FpV_dotproduct 216340
FpV_dotsquare 0
FpV_red 35
FpV_sub 0
FpV_to_mod 2580
FpXQC_to_mod 5
FpX_to_mod 37725
Fp_to_mod 197135
ZM_to_Flm 736423
ZMrow_ZC_mul_i 820543
ZV_to_Flv 6007005
ZV_zMs_mul 39525
ZlM_gauss 1214
ZpMs_ZpCs_solve 0
_F2m_mul 0
_F2m_sqr 0
_Flm_mul 0
_Flm_sqr 0
_FpM_mul 0
_FpM_sqr 0
gen_FpM_Wiedemann 35
gen_ZpM_Dixon 0
gen_matid 10
matid_F2m 6795
matid_F2xqM 5
matid_Flm 192205
matid_FlxqM 5
scalar_Flm 20
to_intmod 875958
vecprow 13175
wrap_relcomb 0
wrap_relcomb_modp 39490
wrap_relker 39490
zCs_to_ZC 0
zMs_ZC_mul 0
zMs_to_ZM 0
zm_mul 40
zm_zc_mul 854440
zmrow_zc_mul 11410475

Generated by: LCOV version 1.9