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 16624-25b9976) Lines: 1082 1189 91.0 %
Date: 2014-06-24 Functions: 64 69 92.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 615 822 74.8 %

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 0
FpM_ratlift 1916
FpX_ratlift 3469
FqX_centermod 10354
L2_bound 415
QXQX_normalize 395
RgX_int_normalize 575
ZXirred_is_cyclo_translate 120
ZqX 250
ZqX_normalize 250
arch_for_T2 4808
arch_for_T2_prec 2715
bestlift_bound 250
bestlift_init 415
cmbf_maxK 4160
ensure_lt_INT 320
fact_from_sqff 205
get_Bhigh 170
get_R 425
get_V 175
get_den 270
get_good_factor 7270
get_maxf 440
get_nfsqff_data 260
get_trace 65278
guess_roots 385
init_div_data 435
init_proj 415
init_trace 270
is_primitive_root 0
lift_to_frac 66082
max_radius 425
mybestlift_bound 165
nf_Beauzamy_bound 135
nf_DDF_roots 290
nf_LLL_cmbf 35
nf_Mignotte_bound 135
nf_bestlift 22833
nf_bestlift_to_pol 17563
nf_chk_factors 20
nf_combine_factors 135
nf_factor_bound 135
nf_pick_prime 275
nf_pick_prime_for_units 165
nf_pm1 0
nf_pol_lift 4024
nf_root_bounds 250
nf_to_Zq 5730
nfcmbf 135
nfcyclo_root 195
nffactor 145
nffactormod 5
nfgcd 340
nfgcd_all 705
nfissplit 15
nfroots 120
nfroots_split 20
nfsqff 295
nfsqff_trager 70
nfsqff_use_Trager 535
normlp 530
polfnf 60
proper_nf 350
rootsof1 1060
rootsof1_kannan 0
trivroots 800
update_target 515
update_trace 7930
zerofact 0

Generated by: LCOV version 1.9