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 - arith2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21353-12523aa) Lines: 600 642 93.5 %
Date: 2017-11-24 06:20:58 Functions: 88 91 96.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
corefa 0
corepartial 0
fuse_Z_factor 0
coredisc2 7
ZV_in_range 14
coredisc0 14
is_nf_extfactor 14
sumdigits_block 14
boundfact 35
sumdigits 35
digits 56
fromdigits 56
coredisc 84
_mod4 91
sumdigits0 105
check_basis 182
check_arith_pos 210
_dvmdii 436
divisors_factored 721
numdiv_aux 760
divisors0 777
numdivu 815
omegau 815
bigomegau 821
uissquarefree_fact 1099
core2fa 1176
core2partial 1176
fa_issquarefree 1407
sumdiv_aux 1474
core2 1477
core2_i 1484
sumdivk_aux 1506
bigomega 1589
numdiv 1589
omega 1589
_addii 1771
Z_issquarefree 2179
gen_fromdigits 2527
arith_n 2912
sumdiv 3017
digits_dacsmall 3075
core0 3094
fa_clean 3486
corediscs 3606
issquarefree 3913
cmpi1 4354
RgV_is_ZVnon0 6615
is_Z_factornon0 6615
sumdivk 7987
gen_digits 8449
gen_digits_i 8499
usumdivk_fact 9071
Z_smoothen 10794
usumdiv_fact 11217
set_fact 11410
clean_Z_factor 13419
RgV_is_ZV0 13475
is_Z_factor 13475
u_euler_sumdiv 14648
euler_sumdiv 17881
uissquarefree 18275
RgV_is_prV 22967
is_nf_factor 26775
gen_fromdigits_dac 28889
factoru_pow 30302
factor_pn_1 67364
factor_pn_1_limit 67364
check_arith_non0 76651
factorlim 87566
divisorsu 121733
eulerphi 145607
eulerphiu 150244
gen_digits_dac 186422
_mulii 200068
check_arith_all 231280
eulerphiu_fact 236653
set_fact_check 350749
sumdigitsu 355152
divisors 361403
ndiv 362103
divisors_init 362166
_sqri 794238
fromdigitsu 833090
get_vB 843856
is_Z_factorpos 2202178
is_Z_factor_i 2222268
set_vexp 2491958
fromdigitsu_dac 2622742
RgV_is_ZVpos 4429661
divisorsu_fact 10602442
numdivu_fact 10603635

Generated by: LCOV version 1.11