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 - nffactor.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20777-d2a9243) Lines: 1115 1210 92.1 %
Date: 2017-06-25 05:59:24 Functions: 65 69 94.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 582611
FpM_ratlift 119491
FpX_ratlift 6458
FqX_centermod 2268
L2_bound 1836
QXQX_normalize 2661
RgX_int_normalize 1673
ZXirred_is_cyclo_translate 1155
ZqX 1422
ZqX_normalize 1422
_norml2 147175
arch_for_T2 15043
bestlift_bound 1422
bestlift_init 1836
cmbf_maxK 10599
ensure_lt_INT 2010
fact_from_sqff 546
fix_nf 1961
get_Bhigh 483
get_R 1864
get_V 259
get_good_factor 31417
get_maxf 2270
get_nfsqff_data 1996
get_trace 132783
guess_roots 6007
init_div_data 1871
init_proj 1836
init_trace 868
is_primitive_root 0
lift_to_frac 4330359
max_radius 1864
mybestlift_bound 414
nf_Beauzamy_bound 434
nf_DDF_roots 988
nf_LLL_cmbf 49
nf_Mignotte_bound 434
nf_bestlift 19479
nf_bestlift_to_pol 9161
nf_chk_factors 35
nf_combine_factors 434
nf_factor_bound 434
nf_pick_prime 1856
nf_pick_prime_for_units 414
nf_pol_lift 1610
nf_root_bounds 1422
nf_to_Zq 15021
nfcmbf 434
nfcyclo_root 428
nffactor 665
nffactormod 7
nfgcd 1799
nfgcd_all 3872
nfissquarefree 2100
nfroots 2976
nfroots_if_split 84
nfsqff 2374
nfsqff_trager 126
nfsqff_use_Trager 3866
normlp 2641
polfnf 14
proper_nf 343
rootsof1 8463
rootsof1_kannan 0
trivroots 6964
update_target 1176
update_trace 15694
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11