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-bordeaux1.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.8.0 lcov report (development 17236-ec2ebc9) Lines: 1115 1218 91.5 %
Date: 2014-12-19 Functions: 66 70 94.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 640 838 76.4 %

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 28
FpM_ratlift 3609
FpX_ratlift 5112
FqX_centermod 30807
L2_bound 1470
QXQX_normalize 1127
RgX_int_normalize 1939
ZXirred_is_cyclo_translate 224
ZqX 1155
ZqX_normalize 1155
arch_for_T2 16695
arch_for_T2_prec 10073
bestlift_bound 1155
bestlift_init 1470
cmbf_maxK 8589
ensure_lt_INT 1260
fact_from_sqff 455
get_Bhigh 721
get_R 1484
get_V 490
get_den 1057
get_good_factor 27447
get_maxf 1631
get_nfsqff_data 1148
get_trace 187964
guess_roots 714
init_div_data 1512
init_proj 1470
init_trace 1246
is_primitive_root 0
lift_to_frac 109765
max_radius 1484
mybestlift_bound 315
nf_Beauzamy_bound 623
nf_DDF_roots 861
nf_LLL_cmbf 98
nf_Mignotte_bound 623
nf_bestlift 69153
nf_bestlift_to_pol 51975
nf_chk_factors 56
nf_combine_factors 623
nf_factor_bound 623
nf_pick_prime 1316
nf_pick_prime_for_units 315
nf_pm1 0
nf_pol_lift 12362
nf_root_bounds 1155
nf_to_Zq 19936
nfcmbf 623
nfcyclo_root 357
nffactor 343
nffactormod 7
nfgcd 1127
nfgcd_all 2450
nfissplit 21
nfissquarefree 938
nfroots 896
nfroots_split 28
nfsqff 1827
nfsqff_trager 231
nfsqff_use_Trager 2478
normlp 2149
polfnf 112
proper_nf 1253
rootsof1 1770
rootsof1_kannan 0
trivroots 1287
update_target 2072
update_trace 30464
zerofact 0

Generated by: LCOV version 1.9