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 23008-54b2e2f01) Lines: 1150 1241 92.7 %
Date: 2018-09-20 05:37:46 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 2353
nfgcd 2492
nfissquarefree 2506
RgX_int_normalize 2877
ZqX 3403
ZqX_normalize 3403
nf_root_bounds 3403
bestlift_bound 3410
L2_bound 3804
bestlift_init 3804
init_proj 3804
init_div_data 3839
get_R 3860
max_radius 3860
get_nbprimes 5524
nf_pick_prime 5524
guess_roots 5924
get_maxf 5925
normTp 5987
fix_nf 6028
get_nfsqff_data 6126
ensure_lt_INT 6140
QXQX_normalize 6966
trivroots 6978
nfroots 7008
nfsqff 7323
nf_pol_lift 7385
rootsof1 8506
normlp 8582
nfgcd_all 8695
nfsqff_use_Trager 11671
cmbf_maxK 13959
update_trace 16842
FqX_centermod 16905
arch_for_T2 23597
record 23834
nf_to_Zq 25920
nf_bestlift_to_pol 33305
nf_bestlift 46591
FpX_ratlift 47416
get_good_factor 86469
lift_to_frac 121468
get_trace 128534
_norml2 170079
FpM_ratlift 951867
FpC_ratlift 1948421
lift_to_frac_tdenom 13898959

Generated by: LCOV version 1.13