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 21501-1931cb9) Lines: 600 642 93.5 %
Date: 2017-12-16 06:20:36 Functions: 88 91 96.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgV_is_ZV0 13475
RgV_is_ZVnon0 6615
RgV_is_ZVpos 4605460
RgV_is_prV 22967
ZV_in_range 14
Z_issquarefree 2179
Z_smoothen 10794
_addii 1771
_dvmdii 436
_mod4 91
_mulii 200068
_sqri 772578
arith_n 2912
bigomega 1589
bigomegau 821
boundfact 35
check_arith_all 231763
check_arith_non0 36492
check_arith_pos 210
check_basis 182
clean_Z_factor 13419
cmpi1 4354
core0 3094
core2 1477
core2_i 1484
core2fa 1176
core2partial 1176
coredisc 84
coredisc0 14
coredisc2 7
corediscs 3697
corefa 0
corepartial 0
digits 56
digits_dacsmall 3075
divisors 361403
divisors0 777
divisors_factored 721
divisors_init 362166
divisorsu 123773
divisorsu_fact 11131631
euler_sumdiv 17881
eulerphi 145607
eulerphiu 150223
eulerphiu_fact 235736
fa_clean 3486
fa_issquarefree 1407
factor_pn_1 68995
factor_pn_1_limit 68995
factorlim 89197
factoru_pow 29016
fromdigits 56
fromdigitsu 786809
fromdigitsu_dac 2533141
fuse_Z_factor 0
gen_digits 8470
gen_digits_dac 186569
gen_digits_i 8520
gen_fromdigits 2534
gen_fromdigits_dac 28896
get_vB 797603
is_Z_factor 13475
is_Z_factor_i 2309954
is_Z_factornon0 6622
is_Z_factorpos 2289857
is_nf_extfactor 14
is_nf_factor 26775
issquarefree 3913
ndiv 362103
numdiv 1589
numdiv_aux 760
numdivu 815
numdivu_fact 11135141
omega 1589
omegau 815
set_fact 11410
set_fact_check 350749
set_vexp 2402427
sumdigits 35
sumdigits0 105
sumdigits_block 14
sumdigitsu 355152
sumdiv 3017
sumdiv_aux 1474
sumdivk 7987
sumdivk_aux 1506
u_euler_sumdiv 14704
uissquarefree 18128
uissquarefree_fact 1099
usumdiv_fact 11273
usumdivk_fact 9071

Generated by: LCOV version 1.11