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 to exceed 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.12.0 lcov report (development 23353-42c433a02) Lines: 1155 1241 93.1 %
Date: 2018-12-15 05:41:59 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 42
nf_LLL_cmbf 49
nfroots_if_split 84
nfsqff_trager 210
get_V 266
mybestlift_bound 429
nf_pick_prime_for_units 429
nfcyclo_root 443
proper_nf 952
nf_Beauzamy_bound 1064
nf_Mignotte_bound 1064
nf_combine_factors 1064
nf_factor_bound 1064
nfcmbf 1064
get_Bhigh 1113
ZXirred_is_cyclo_translate 1246
fact_from_sqff 1323
nffactor 1498
update_target 1799
init_trace 2128
nf_DDF_roots 2353
RgX_int_normalize 2940
nfissquarefree 3094
nf_root_bounds 3417
ZqX 3424
ZqX_normalize 3424
bestlift_bound 3431
L2_bound 3846
bestlift_init 3853
init_proj 3853
init_div_data 3888
get_R 3895
max_radius 3895
nfgcd 5236
get_nbprimes 5608
nf_pick_prime 5608
normTp 6015
get_maxf 6037
fix_nf 6119
get_nfsqff_data 6245
ensure_lt_INT 6259
nfroots 7064
QXQX_normalize 7183
nf_pol_lift 7427
nfsqff 7449
guess_roots 8150
normlp 8596
trivroots 9911
rootsof1 11530
nfgcd_all 11558
nfsqff_use_Trager 11874
cmbf_maxK 14155
FqX_centermod 16926
update_trace 17374
arch_for_T2 23926
record 24107
nf_to_Zq 26221
nf_bestlift_to_pol 33452
nf_bestlift 47172
FpX_ratlift 62947
get_good_factor 86994
get_trace 135471
lift_to_frac 152101
_norml2 177450
FpM_ratlift 1003102
FpC_ratlift 2035082
lift_to_frac_tdenom 14175337

Generated by: LCOV version 1.13