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 20068-a012b06) Lines: 1111 1206 92.1 %
Date: 2017-01-16 05:49:55 Functions: 65 69 94.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 468234
FpM_ratlift 12567
FpX_ratlift 5277
FqX_centermod 15533
L2_bound 1472
QXQX_normalize 2185
RgX_int_normalize 980
ZXirred_is_cyclo_translate 301
ZqX 1065
ZqX_normalize 1065
_norml2 127302
arch_for_T2 14175
bestlift_bound 1065
bestlift_init 1472
cmbf_maxK 9724
ensure_lt_INT 1492
fact_from_sqff 539
fix_nf 1324
get_Bhigh 427
get_R 1486
get_V 245
get_good_factor 25264
get_maxf 1633
get_nfsqff_data 1380
get_trace 94353
guess_roots 939
init_div_data 1500
init_proj 1472
init_trace 756
is_primitive_root 0
lift_to_frac 3474620
max_radius 1486
mybestlift_bound 407
nf_Beauzamy_bound 378
nf_DDF_roots 687
nf_LLL_cmbf 49
nf_Mignotte_bound 378
nf_bestlift 36545
nf_bestlift_to_pol 27571
nf_chk_factors 28
nf_combine_factors 378
nf_factor_bound 378
nf_pick_prime 1226
nf_pick_prime_for_units 407
nf_pol_lift 6300
nf_root_bounds 1065
nf_to_Zq 13124
nfcmbf 378
nfcyclo_root 421
nffactor 539
nffactormod 7
nfgcd 1295
nfgcd_all 2850
nfissquarefree 1428
nfroots 1884
nfroots_if_split 63
nfsqff 1730
nfsqff_trager 224
nfsqff_use_Trager 2620
normlp 1983
polfnf 112
proper_nf 231
rootsof1 2177
rootsof1_kannan 0
trivroots 1532
update_target 1141
update_trace 15624
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11