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 21913-852521c) Lines: 1126 1219 92.4 %
Date: 2018-02-19 06:15:51 Functions: 67 71 94.4 %
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 42
nf_LLL_cmbf 56
nfroots_if_split 84
nfsqff_trager 133
get_V 273
mybestlift_bound 414
nf_pick_prime_for_units 414
nfcyclo_root 428
proper_nf 728
nf_Beauzamy_bound 889
nf_Mignotte_bound 889
nf_combine_factors 889
nf_factor_bound 889
nfcmbf 889
get_Bhigh 945
fact_from_sqff 1029
ZXirred_is_cyclo_translate 1099
nffactor 1176
update_target 1771
init_trace 1778
nfissquarefree 2184
nfgcd 2282
nf_pol_lift 2317
nf_DDF_roots 2332
RgX_int_normalize 2737
FqX_centermod 3031
ZqX 3221
ZqX_normalize 3221
bestlift_bound 3221
nf_root_bounds 3221
L2_bound 3635
bestlift_init 3635
init_proj 3635
init_div_data 3677
get_R 3698
max_radius 3698
nf_pick_prime 5202
get_maxf 5616
fix_nf 5706
get_nfsqff_data 5741
ensure_lt_INT 5755
guess_roots 5790
normTp 5798
nfroots 6336
QXQX_normalize 6504
trivroots 6810
nfsqff 6917
nfgcd_all 8100
rootsof1 8253
normlp 8400
nfsqff_use_Trager 10964
nf_bestlift_to_pol 13109
cmbf_maxK 13301
update_trace 17864
arch_for_T2 21896
nf_to_Zq 24380
nf_bestlift 26521
FpX_ratlift 37856
get_good_factor 72640
lift_to_frac 103117
get_trace 171913
_norml2 192920
FpM_ratlift 308673
FpC_ratlift 1777758
lift_to_frac_tdenom 12727061

Generated by: LCOV version 1.11