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 16358-a11f489) Lines: 1077 1189 90.6 %
Date: 2014-04-11 Functions: 64 69 92.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 610 822 74.2 %

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 0
FpM_ratlift 1897
FpX_ratlift 2850
FqX_centermod 10349
L2_bound 405
QXQX_normalize 390
RgX_int_normalize 575
ZXirred_is_cyclo_translate 70
ZqX 240
ZqX_normalize 240
arch_for_T2 4790
arch_for_T2_prec 2705
bestlift_bound 240
bestlift_init 405
cmbf_maxK 4095
ensure_lt_INT 305
fact_from_sqff 200
get_Bhigh 165
get_R 415
get_V 175
get_den 255
get_good_factor 7140
get_maxf 425
get_nfsqff_data 245
get_trace 65278
guess_roots 325
init_div_data 425
init_proj 405
init_trace 260
is_primitive_root 0
lift_to_frac 60693
max_radius 415
mybestlift_bound 165
nf_Beauzamy_bound 130
nf_DDF_roots 285
nf_LLL_cmbf 35
nf_Mignotte_bound 130
nf_bestlift 22798
nf_bestlift_to_pol 17548
nf_chk_factors 20
nf_combine_factors 130
nf_factor_bound 130
nf_pick_prime 260
nf_pick_prime_for_units 165
nf_pm1 0
nf_pol_lift 4019
nf_root_bounds 240
nf_to_Zq 5700
nfcmbf 130
nfcyclo_root 195
nffactor 140
nffactormod 5
nfgcd 340
nfgcd_all 690
nfissplit 15
nfroots 110
nfroots_split 20
nfsqff 280
nfsqff_trager 70
nfsqff_use_Trager 505
normlp 515
polfnf 60
proper_nf 335
rootsof1 980
rootsof1_kannan 0
trivroots 770
update_target 510
update_trace 7920
zerofact 0

Generated by: LCOV version 1.9