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 21351-66b5338) Lines: 1114 1207 92.3 %
Date: 2017-11-22 06:21:08 Functions: 66 70 94.3 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.11