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 20422-b487f4d) Lines: 1110 1207 92.0 %
Date: 2017-03-22 05:51:54 Functions: 65 69 94.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 423863
FpM_ratlift 111315
FpX_ratlift 5961
FqX_centermod 15533
L2_bound 1598
QXQX_normalize 2311
RgX_int_normalize 1582
ZXirred_is_cyclo_translate 315
ZqX 1184
ZqX_normalize 1184
_norml2 127302
arch_for_T2 14175
bestlift_bound 1184
bestlift_init 1598
cmbf_maxK 9696
ensure_lt_INT 1618
fact_from_sqff 539
fix_nf 1471
get_Bhigh 427
get_R 1619
get_V 245
get_good_factor 27308
get_maxf 1787
get_nfsqff_data 1506
get_trace 94353
guess_roots 960
init_div_data 1626
init_proj 1598
init_trace 756
is_primitive_root 0
lift_to_frac 3471002
max_radius 1619
mybestlift_bound 414
nf_Beauzamy_bound 378
nf_DDF_roots 806
nf_LLL_cmbf 49
nf_Mignotte_bound 378
nf_bestlift 36804
nf_bestlift_to_pol 27830
nf_chk_factors 28
nf_combine_factors 378
nf_factor_bound 378
nf_pick_prime 1373
nf_pick_prime_for_units 414
nf_pol_lift 6300
nf_root_bounds 1184
nf_to_Zq 13649
nfcmbf 378
nfcyclo_root 428
nffactor 539
nffactormod 7
nfgcd 1295
nfgcd_all 2976
nfissquarefree 1449
nfroots 2010
nfroots_if_split 84
nfsqff 1877
nfsqff_trager 224
nfsqff_use_Trager 2893
normlp 2221
polfnf 112
proper_nf 252
rootsof1 2205
rootsof1_kannan 0
trivroots 1546
update_target 1141
update_trace 15624
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11