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 17960-0cd23ba) Lines: 1122 1221 91.9 %
Date: 2015-09-03 Functions: 66 70 94.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 645 838 77.0 %

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 42
FpM_ratlift 3658
FpX_ratlift 5174
FqX_centermod 30849
L2_bound 1505
QXQX_normalize 1253
RgX_int_normalize 1939
ZXirred_is_cyclo_translate 252
ZqX 1190
ZqX_normalize 1190
arch_for_T2 16835
arch_for_T2_prec 10143
bestlift_bound 1190
bestlift_init 1505
cmbf_maxK 8925
ensure_lt_INT 1281
fact_from_sqff 476
fix_nf 1092
get_Bhigh 749
get_R 1519
get_V 490
get_good_factor 27860
get_maxf 1687
get_nfsqff_data 1169
get_trace 188034
guess_roots 742
init_div_data 1547
init_proj 1505
init_trace 1302
is_primitive_root 0
lift_to_frac 116479
max_radius 1519
mybestlift_bound 315
nf_Beauzamy_bound 651
nf_DDF_roots 868
nf_LLL_cmbf 98
nf_Mignotte_bound 651
nf_bestlift 69475
nf_bestlift_to_pol 52157
nf_chk_factors 56
nf_combine_factors 651
nf_factor_bound 651
nf_pick_prime 1372
nf_pick_prime_for_units 315
nf_pm1 0
nf_pol_lift 12404
nf_root_bounds 1190
nf_to_Zq 20097
nfcmbf 651
nfcyclo_root 357
nffactor 455
nffactormod 7
nfgcd 1169
nfgcd_all 2513
nfissplit 21
nfissquarefree 1239
nfroots 1869
nfroots_split 42
nfsqff 1883
nfsqff_trager 231
nfsqff_use_Trager 2555
normlp 2191
polfnf 112
proper_nf 238
rootsof1 1840
rootsof1_kannan 0
trivroots 1329
update_target 2100
update_trace 30548
zerofact 0

Generated by: LCOV version 1.9