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 16827-3d78da8) Lines: 1078 1189 90.7 %
Date: 2014-09-29 Functions: 64 69 92.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 613 822 74.6 %

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 0
FpM_ratlift 2708
FpX_ratlift 4831
FqX_centermod 14497
L2_bound 574
QXQX_normalize 644
RgX_int_normalize 805
ZXirred_is_cyclo_translate 168
ZqX 350
ZqX_normalize 350
arch_for_T2 6727
arch_for_T2_prec 3801
bestlift_bound 350
bestlift_init 574
cmbf_maxK 5894
ensure_lt_INT 455
fact_from_sqff 294
get_Bhigh 238
get_R 588
get_V 245
get_den 378
get_good_factor 10108
get_maxf 609
get_nfsqff_data 364
get_trace 91392
guess_roots 532
init_div_data 602
init_proj 574
init_trace 378
is_primitive_root 0
lift_to_frac 90991
max_radius 588
mybestlift_bound 224
nf_Beauzamy_bound 189
nf_DDF_roots 399
nf_LLL_cmbf 49
nf_Mignotte_bound 189
nf_bestlift 31941
nf_bestlift_to_pol 24563
nf_chk_factors 28
nf_combine_factors 189
nf_factor_bound 189
nf_pick_prime 385
nf_pick_prime_for_units 224
nf_pm1 0
nf_pol_lift 5635
nf_root_bounds 350
nf_to_Zq 8022
nfcmbf 189
nfcyclo_root 266
nffactor 203
nffactormod 7
nfgcd 560
nfgcd_all 1078
nfissplit 21
nfroots 168
nfroots_split 28
nfsqff 413
nfsqff_trager 105
nfsqff_use_Trager 749
normlp 742
polfnf 91
proper_nf 490
rootsof1 1477
rootsof1_kannan 0
trivroots 1120
update_target 721
update_trace 11102
zerofact 0

Generated by: LCOV version 1.9