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 19823-d80e022) Lines: 554 600 92.3 %
Date: 2016-12-03 05:49:13 Functions: 79 82 96.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgV_is_ZV0 3178
RgV_is_ZVnon0 5166
RgV_is_ZVpos 3124753
RgV_is_prV 2646
ZV_in_range 14
Z_issquarefree 772
Z_smoothen 10429
_addii 1771
_dvmdii 436
_mod4 14
_mulii 200075
_sqri 771995
bigomega 1589
bigomegau 821
boundfact 35
check_arith_all 187656
check_arith_non0 33783
check_arith_pos 189
check_basis 182
clean_Z_factor 4501
core0 3094
core2 1477
core2_i 1484
core2fa 763
core2partial 763
coredisc 7
coredisc0 14
coredisc2 7
corediscs 2780
corefa 0
corepartial 0
digits 56
digits_dacsmall 3075
divisors 361354
divisors_init 361396
divisorsu 90025
divisorsu_fact 91243
euler_sumdiv 9677
eulerphi 145607
eulerphiu 149901
eulerphiu_fact 151253
factor_pn_1 62226
factor_pn_1_limit 62226
factorlim 80216
factoru_pow 27820
fromdigits 56
fromdigitsu 751885
fromdigitsu_dac 2497025
fuse_Z_factor 0
gen_digits 6230
gen_digits_dac 166283
gen_digits_i 6280
gen_fromdigits 2527
gen_fromdigits_dac 28889
get_vB 760628
is_Z_factor 3178
is_Z_factor_i 1566391
is_Z_factornon0 5166
is_Z_factorpos 1558047
is_nf_extfactor 14
is_nf_factor 6328
issquarefree 46970
numdiv 1897
numdiv_aux 760
omega 1589
omegau 815
set_fact 10640
set_fact_check 350749
set_vexp 2356712
sumdigits 35
sumdigits0 105
sumdigits_block 14
sumdigitsu 355152
sumdiv 1589
sumdiv_aux 753
sumdivk 6545
sumdivk_aux 1506
u_euler_sumdiv 1635
uissquarefree 11513
uissquarefree_fact 287
usumdiv_fact 808
usumdivk_fact 3380

Generated by: LCOV version 1.11