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.8.0 lcov report (development 19352-1b11b25) Lines: 1132 1231 92.0 %
Date: 2016-08-25 06:11:27 Functions: 66 70 94.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 336627
FpM_ratlift 9915
FpX_ratlift 5000
FqX_centermod 31052
L2_bound 1645
QXQX_normalize 2086
RgX_int_normalize 2037
ZXirred_is_cyclo_translate 280
ZqX 1316
ZqX_normalize 1316
arch_for_T2 17997
arch_for_T2_prec 10381
bestlift_bound 1316
bestlift_init 1645
cmbf_maxK 9884
ensure_lt_INT 1358
fact_from_sqff 525
fix_nf 1169
get_Bhigh 847
get_R 1659
get_V 490
get_good_factor 29260
get_maxf 1827
get_nfsqff_data 1246
get_trace 187950
guess_roots 791
init_div_data 1687
init_proj 1645
init_trace 1498
is_primitive_root 0
lift_to_frac 1974507
max_radius 1659
mybestlift_bound 329
nf_Beauzamy_bound 749
nf_DDF_roots 910
nf_LLL_cmbf 98
nf_Mignotte_bound 749
nf_bestlift 70819
nf_bestlift_to_pol 52885
nf_chk_factors 56
nf_combine_factors 749
nf_factor_bound 749
nf_pick_prime 1498
nf_pick_prime_for_units 329
nf_pm1 0
nf_pol_lift 12614
nf_root_bounds 1316
nf_to_Zq 21385
nfcmbf 749
nfcyclo_root 364
nffactor 525
nffactormod 7
nfgcd 1274
nfgcd_all 2695
nfissplit 21
nfissquarefree 1372
nfroots 1897
nfroots_split 42
nfsqff 2009
nfsqff_trager 231
nfsqff_use_Trager 2758
normlp 2345
polfnf 112
proper_nf 217
rootsof1 1973
rootsof1_kannan 0
trivroots 1427
update_target 2310
update_trace 31500
zerofact 0

Generated by: LCOV version 1.11