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.1 lcov report (development 22726-9e20c6a88) Lines: 1151 1242 92.7 %
Date: 2018-06-23 05:36:28 Functions: 69 73 94.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
is_primitive_root 0
rootsof1_kannan 0
zerofact 0
zk_equal1 0
nffactormod 7
polfnf 14
nf_chk_factors 35
nf_LLL_cmbf 42
nfroots_if_split 84
nfsqff_trager 189
get_V 252
mybestlift_bound 401
nf_pick_prime_for_units 401
nfcyclo_root 415
proper_nf 938
nf_Beauzamy_bound 1050
nf_Mignotte_bound 1050
nf_combine_factors 1050
nf_factor_bound 1050
nfcmbf 1050
get_Bhigh 1092
ZXirred_is_cyclo_translate 1183
fact_from_sqff 1232
nffactor 1393
update_target 1764
init_trace 2100
nf_DDF_roots 2346
nfgcd 2485
nfissquarefree 2499
RgX_int_normalize 2877
ZqX 3396
ZqX_normalize 3396
nf_root_bounds 3396
bestlift_bound 3403
L2_bound 3797
bestlift_init 3797
init_proj 3797
init_div_data 3832
get_R 3853
max_radius 3853
get_nbprimes 5517
nf_pick_prime 5517
get_maxf 5918
guess_roots 5924
normTp 5973
fix_nf 6021
get_nfsqff_data 6119
ensure_lt_INT 6133
QXQX_normalize 6959
trivroots 6978
nfroots 7001
nfsqff 7316
nf_pol_lift 7385
rootsof1 8506
normlp 8582
nfgcd_all 8681
nfsqff_use_Trager 11657
cmbf_maxK 13917
update_trace 16842
FqX_centermod 16905
arch_for_T2 23597
record 23799
nf_to_Zq 25899
nf_bestlift_to_pol 33291
FpX_ratlift 46366
nf_bestlift 46577
get_good_factor 86392
lift_to_frac 120105
get_trace 128534
_norml2 170079
FpM_ratlift 951400
FpC_ratlift 1947191
lift_to_frac_tdenom 13885634

Generated by: LCOV version 1.13