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 16375-9f41ae0) Lines: 507 722 70.2 %
Date: 2014-04-19 Functions: 66 96 68.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 257 440 58.4 %

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_mul 0
F2m_F2c_mul_i 674970
F2m_mul 102760
F2m_powu 0
F2v_dotproduct 0
Fl_to_intmod 1084
Flc_Fl_div 0
Flc_Fl_div_inplace 0
Flc_Fl_mul 20855
Flc_Fl_mul_inplace 0
Flc_Fl_mul_part_inplace 980200
Flc_to_mod 28
Flm_Fl_add 822
Flm_Fl_mul 0
Flm_Fl_mul_inplace 22373
Flm_Flc_mul 377657
Flm_Flc_mul_i 11510
Flm_Flc_mul_i_2 298708
Flm_Flc_mul_i_SMALL 646412
Flm_center 6025
Flm_mul 135063
Flm_neg 14
Flm_powu 0
Flm_to_mod 152
Flm_transpose 5742
Flmrow_Flc_mul 117993
Flmrow_Flc_mul_SMALL 8182422
Flv_add 3010
Flv_add_inplace 497877
Flv_center 87176
Flv_dotproduct 0
Flv_sub 0
Flv_sub_inplace 0
Flv_sum 1092
FpC_FpV_mul 945
FpC_Fp_mul 33566
FpC_add 10386
FpC_center 35
FpC_red 2766141
FpC_sub 15327
FpC_to_mod 70
FpM_FpC_mul 68593
FpM_FpC_mul_FpX 182879
FpM_FpC_mul_i 69542
FpM_center 28
FpM_mul 223148
FpM_powu 0
FpM_red 669783
FpM_to_mod 86
FpMs_FpC_mul 0
FpMs_FpCs_solve 0
FpMs_FpCs_solve_safe 0
FpMs_leftkernel_elt 42
FpMs_structelim_back 42
FpVV_to_mod 1813
FpV_FpMs_mul 42
FpV_add 0
FpV_dotproduct 324685
FpV_dotsquare 0
FpV_red 42
FpV_sub 0
FpV_to_mod 3031
FpXQC_to_mod 7
FpX_to_mod 58765
Fp_to_mod 241360
ZM_to_Flm 475633
ZMrow_ZC_mul_i 1178342
ZV_to_Flv 4254784
ZV_zMs_mul 45108
ZlM_gauss 1682
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 42
gen_ZpM_Dixon 0
gen_matid 14
matid_F2m 9009
matid_F2xqM 7
matid_Flm 49626
matid_FlxqM 7
scalar_Flm 28
to_intmod 1351169
vecprow 15036
wrap_relcomb 0
wrap_relcomb_modp 45066
wrap_relker 45066
zCs_to_ZC 0
zMs_ZC_mul 0
zMs_to_ZM 0
zm_mul 56
zm_zc_mul 1201897
zmrow_zc_mul 15881573

Generated by: LCOV version 1.9