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 19611-73a567d) Lines: 1112 1208 92.1 %
Date: 2016-09-27 05:54:40 Functions: 65 69 94.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 435338
FpM_ratlift 10006
FpX_ratlift 5214
FqX_centermod 31066
L2_bound 1738
QXQX_normalize 2108
RgX_int_normalize 2037
ZXirred_is_cyclo_translate 287
ZqX 1338
ZqX_normalize 1338
_norml2 254835
arch_for_T2 28378
bestlift_bound 1338
bestlift_init 1738
cmbf_maxK 10004
ensure_lt_INT 1380
fact_from_sqff 525
fix_nf 1212
get_Bhigh 847
get_R 1745
get_V 490
get_good_factor 30150
get_maxf 1920
get_nfsqff_data 1268
get_trace 188790
guess_roots 890
init_div_data 1780
init_proj 1738
init_trace 1498
is_primitive_root 0
lift_to_frac 2268722
max_radius 1745
mybestlift_bound 400
nf_Beauzamy_bound 749
nf_DDF_roots 589
nf_LLL_cmbf 98
nf_Mignotte_bound 749
nf_bestlift 70481
nf_bestlift_to_pol 52491
nf_chk_factors 56
nf_combine_factors 749
nf_factor_bound 749
nf_pick_prime 1520
nf_pick_prime_for_units 400
nf_pol_lift 12600
nf_root_bounds 1338
nf_to_Zq 21671
nfcmbf 749
nfcyclo_root 414
nffactor 525
nffactormod 7
nfgcd 1295
nfgcd_all 2738
nfissquarefree 1407
nfroots 1940
nfroots_if_split 63
nfsqff 2031
nfsqff_trager 231
nfsqff_use_Trager 2802
normlp 2389
polfnf 112
proper_nf 217
rootsof1 2093
rootsof1_kannan 0
trivroots 1469
update_target 2310
update_trace 31640
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11