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 16962-5a32637) Lines: 1086 1189 91.3 %
Date: 2014-10-29 Functions: 65 69 94.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 616 822 74.9 %

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 28
FpM_ratlift 2617
FpX_ratlift 4762
FqX_centermod 14497
L2_bound 546
QXQX_normalize 567
RgX_int_normalize 805
ZXirred_is_cyclo_translate 168
ZqX 329
ZqX_normalize 329
arch_for_T2 6727
arch_for_T2_prec 3801
bestlift_bound 329
bestlift_init 546
cmbf_maxK 5691
ensure_lt_INT 413
fact_from_sqff 273
get_Bhigh 238
get_R 560
get_V 245
get_den 357
get_good_factor 9709
get_maxf 581
get_nfsqff_data 343
get_trace 91392
guess_roots 525
init_div_data 574
init_proj 546
init_trace 378
is_primitive_root 0
lift_to_frac 94591
max_radius 560
mybestlift_bound 217
nf_Beauzamy_bound 189
nf_DDF_roots 371
nf_LLL_cmbf 49
nf_Mignotte_bound 189
nf_bestlift 31892
nf_bestlift_to_pol 24514
nf_chk_factors 28
nf_combine_factors 189
nf_factor_bound 189
nf_pick_prime 364
nf_pick_prime_for_units 217
nf_pm1 0
nf_pol_lift 5635
nf_root_bounds 329
nf_to_Zq 7938
nfcmbf 189
nfcyclo_root 259
nffactor 203
nffactormod 7
nfgcd 490
nfgcd_all 966
nfissplit 21
nfroots 147
nfroots_split 28
nfsqff 392
nfsqff_trager 84
nfsqff_use_Trager 707
normlp 700
polfnf 70
proper_nf 469
rootsof1 1407
rootsof1_kannan 0
trivroots 1057
update_target 721
update_trace 11102
zerofact 0

Generated by: LCOV version 1.9