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 19825-b77c7f8) Lines: 1111 1207 92.0 %
Date: 2016-12-06 05:49:02 Functions: 65 69 94.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 438218
FpM_ratlift 12231
FpX_ratlift 5256
FqX_centermod 15491
L2_bound 1374
QXQX_normalize 2087
RgX_int_normalize 980
ZXirred_is_cyclo_translate 287
ZqX 967
ZqX_normalize 967
_norml2 127071
arch_for_T2 13986
bestlift_bound 967
bestlift_init 1374
cmbf_maxK 8520
ensure_lt_INT 1394
fact_from_sqff 525
fix_nf 1226
get_Bhigh 413
get_R 1381
get_V 245
get_good_factor 24158
get_maxf 1535
get_nfsqff_data 1282
get_trace 94353
guess_roots 925
init_div_data 1402
init_proj 1374
init_trace 728
is_primitive_root 0
lift_to_frac 3350139
max_radius 1381
mybestlift_bound 407
nf_Beauzamy_bound 364
nf_DDF_roots 603
nf_LLL_cmbf 49
nf_Mignotte_bound 364
nf_bestlift 36181
nf_bestlift_to_pol 27291
nf_chk_factors 28
nf_combine_factors 364
nf_factor_bound 364
nf_pick_prime 1128
nf_pick_prime_for_units 407
nf_pol_lift 6258
nf_root_bounds 967
nf_to_Zq 12634
nfcmbf 364
nfcyclo_root 421
nffactor 525
nffactormod 7
nfgcd 1281
nfgcd_all 2738
nfissquarefree 1407
nfroots 1800
nfroots_if_split 63
nfsqff 1632
nfsqff_trager 224
nfsqff_use_Trager 2424
normlp 1801
polfnf 112
proper_nf 217
rootsof1 2163
rootsof1_kannan 0
trivroots 1532
update_target 1120
update_trace 15540
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11