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 20277-2bd9113) Lines: 1110 1205 92.1 %
Date: 2017-02-21 05:49:51 Functions: 65 69 94.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 466974
FpM_ratlift 12981
FpX_ratlift 5913
FqX_centermod 15533
L2_bound 1563
QXQX_normalize 2269
RgX_int_normalize 980
ZXirred_is_cyclo_translate 315
ZqX 1149
ZqX_normalize 1149
_norml2 127302
arch_for_T2 14175
bestlift_bound 1149
bestlift_init 1563
cmbf_maxK 9836
ensure_lt_INT 1576
fact_from_sqff 539
fix_nf 1408
get_Bhigh 427
get_R 1584
get_V 245
get_good_factor 26272
get_maxf 1724
get_nfsqff_data 1464
get_trace 94353
guess_roots 953
init_div_data 1591
init_proj 1563
init_trace 756
is_primitive_root 0
lift_to_frac 3471425
max_radius 1584
mybestlift_bound 414
nf_Beauzamy_bound 378
nf_DDF_roots 771
nf_LLL_cmbf 49
nf_Mignotte_bound 378
nf_bestlift 36720
nf_bestlift_to_pol 27746
nf_chk_factors 28
nf_combine_factors 378
nf_factor_bound 378
nf_pick_prime 1310
nf_pick_prime_for_units 414
nf_pol_lift 6300
nf_root_bounds 1149
nf_to_Zq 13488
nfcmbf 378
nfcyclo_root 428
nffactor 539
nffactormod 7
nfgcd 1295
nfgcd_all 2934
nfissquarefree 1428
nfroots 1968
nfroots_if_split 63
nfsqff 1814
nfsqff_trager 224
nfsqff_use_Trager 2788
normlp 2151
polfnf 112
proper_nf 231
rootsof1 2191
rootsof1_kannan 0
trivroots 1532
update_target 1141
update_trace 15624
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11