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-bordeaux.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.10.0 lcov report (development 20459-9710128) Lines: 1110 1207 92.0 %
Date: 2017-04-28 05:33:48 Functions: 65 69 94.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 362910
FpM_ratlift 100992
FpX_ratlift 5142
FqX_centermod 13314
L2_bound 1368
QXQX_normalize 1980
RgX_int_normalize 1356
ZXirred_is_cyclo_translate 270
ZqX 1014
ZqX_normalize 1014
_norml2 109116
arch_for_T2 12150
bestlift_bound 1014
bestlift_init 1368
cmbf_maxK 8310
ensure_lt_INT 1386
fact_from_sqff 462
fix_nf 1260
get_Bhigh 366
get_R 1386
get_V 210
get_good_factor 23340
get_maxf 1530
get_nfsqff_data 1290
get_trace 80874
guess_roots 822
init_div_data 1392
init_proj 1368
init_trace 648
is_primitive_root 0
lift_to_frac 2973606
max_radius 1386
mybestlift_bound 354
nf_Beauzamy_bound 324
nf_DDF_roots 690
nf_LLL_cmbf 42
nf_Mignotte_bound 324
nf_bestlift 31542
nf_bestlift_to_pol 23850
nf_chk_factors 24
nf_combine_factors 324
nf_factor_bound 324
nf_pick_prime 1176
nf_pick_prime_for_units 354
nf_pol_lift 5400
nf_root_bounds 1014
nf_to_Zq 11688
nfcmbf 324
nfcyclo_root 366
nffactor 462
nffactormod 6
nfgcd 1110
nfgcd_all 2550
nfissquarefree 1242
nfroots 1722
nfroots_if_split 72
nfsqff 1608
nfsqff_trager 192
nfsqff_use_Trager 2478
normlp 1902
polfnf 96
proper_nf 216
rootsof1 1890
rootsof1_kannan 0
trivroots 1326
update_target 978
update_trace 13392
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11