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 20924-e159ed0) Lines: 1116 1211 92.2 %
Date: 2017-08-21 06:23:16 Functions: 66 70 94.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 584304
FpM_ratlift 119420
FpX_ratlift 6458
FqX_centermod 2296
L2_bound 3194
QXQX_normalize 6035
RgX_int_normalize 1715
ZXirred_is_cyclo_translate 1155
ZqX 2780
ZqX_normalize 2780
_norml2 147336
arch_for_T2 15204
bestlift_bound 2780
bestlift_init 3194
cmbf_maxK 12167
ensure_lt_INT 5328
fact_from_sqff 602
fix_nf 5279
get_Bhigh 497
get_R 3229
get_V 259
get_good_factor 62756
get_maxf 5182
get_nfsqff_data 5314
get_trace 132818
guess_roots 6007
init_div_data 3229
init_proj 3194
init_trace 896
is_primitive_root 0
lift_to_frac 4333255
max_radius 3229
mybestlift_bound 414
nf_Beauzamy_bound 448
nf_DDF_roots 2332
nf_LLL_cmbf 49
nf_Mignotte_bound 448
nf_bestlift 21642
nf_bestlift_to_pol 11226
nf_chk_factors 35
nf_combine_factors 448
nf_factor_bound 448
nf_pick_prime 4768
nf_pick_prime_for_units 414
nf_pol_lift 1638
nf_root_bounds 2780
nf_to_Zq 20964
nfcmbf 448
nfcyclo_root 428
nffactor 728
nffactormod 7
nfgcd 2149
nfgcd_all 7540
nfissquarefree 2485
nfroots 6238
nfroots_if_split 84
nfsqff 6469
nfsqff_trager 126
nfsqff_use_Trager 10096
normTp 5343
normlp 8358
polfnf 14
proper_nf 364
rootsof1 8463
rootsof1_kannan 0
trivroots 6964
update_target 1204
update_trace 15834
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11