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 21501-1931cb9) Lines: 1114 1207 92.3 %
Date: 2017-12-16 06:20:36 Functions: 66 70 94.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 507504
FpM_ratlift 121171
FpX_ratlift 37737
FqX_centermod 2338
L2_bound 3222
QXQX_normalize 6042
RgX_int_normalize 1771
ZXirred_is_cyclo_translate 1099
ZqX 2808
ZqX_normalize 2808
_norml2 147560
arch_for_T2 15463
bestlift_bound 2808
bestlift_init 3222
cmbf_maxK 12048
ensure_lt_INT 5335
fact_from_sqff 609
fix_nf 5286
get_Bhigh 525
get_R 3257
get_V 259
get_good_factor 63001
get_maxf 5196
get_nfsqff_data 5321
get_trace 132818
guess_roots 5776
init_div_data 3257
init_proj 3222
init_trace 952
is_primitive_root 0
lift_to_frac 4118310
max_radius 3257
mybestlift_bound 414
nf_Beauzamy_bound 476
nf_DDF_roots 2332
nf_LLL_cmbf 49
nf_Mignotte_bound 476
nf_bestlift 21831
nf_bestlift_to_pol 11289
nf_chk_factors 35
nf_combine_factors 476
nf_factor_bound 476
nf_pick_prime 4782
nf_pick_prime_for_units 414
nf_pol_lift 1680
nf_root_bounds 2808
nf_to_Zq 21104
nfcmbf 476
nfcyclo_root 428
nffactor 756
nffactormod 7
nfgcd 2583
nfgcd_all 7981
nfissquarefree 2492
nfroots 6336
nfroots_if_split 84
nfsqff 6476
nfsqff_trager 126
nfsqff_use_Trager 10117
normTp 5371
normlp 8400
polfnf 14
proper_nf 385
rootsof1 8232
rootsof1_kannan 0
trivroots 6789
update_target 1232
update_trace 15904
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11