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 21188-db834f2) Lines: 1113 1208 92.1 %
Date: 2017-10-20 06:23:07 Functions: 66 70 94.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpC_ratlift 584510
FpM_ratlift 117697
FpX_ratlift 6458
FqX_centermod 2310
L2_bound 3201
QXQX_normalize 6049
RgX_int_normalize 1722
ZXirred_is_cyclo_translate 1155
ZqX 2787
ZqX_normalize 2787
_norml2 147406
arch_for_T2 15267
bestlift_bound 2787
bestlift_init 3201
cmbf_maxK 11817
ensure_lt_INT 5335
fact_from_sqff 609
fix_nf 5286
get_Bhigh 504
get_R 3236
get_V 259
get_good_factor 62847
get_maxf 5189
get_nfsqff_data 5321
get_trace 132818
guess_roots 6007
init_div_data 3236
init_proj 3201
init_trace 910
is_primitive_root 0
lift_to_frac 4239330
max_radius 3236
mybestlift_bound 414
nf_Beauzamy_bound 455
nf_DDF_roots 2332
nf_LLL_cmbf 49
nf_Mignotte_bound 455
nf_bestlift 21698
nf_bestlift_to_pol 11254
nf_chk_factors 35
nf_combine_factors 455
nf_factor_bound 455
nf_pick_prime 4775
nf_pick_prime_for_units 414
nf_pol_lift 1652
nf_root_bounds 2787
nf_to_Zq 20999
nfcmbf 455
nfcyclo_root 428
nffactor 749
nffactormod 7
nfgcd 2597
nfgcd_all 7995
nfissquarefree 2506
nfroots 6238
nfroots_if_split 84
nfsqff 6476
nfsqff_trager 126
nfsqff_use_Trager 10110
normTp 5350
normlp 8358
polfnf 14
proper_nf 371
rootsof1 8463
rootsof1_kannan 0
trivroots 6964
update_target 1204
update_trace 15834
zerofact 0
zk_equal1 0

Generated by: LCOV version 1.11