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 - arith2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23353-42c433a02) Lines: 590 671 87.9 %
Date: 2018-12-15 05:41:59 Functions: 87 95 91.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
cmpu1 0
core2fa 0
core2partial 0
corefa 0
corepartial 0
divisorsu_fact_factored 0
fa_clean_u 0
fuse_Z_factor 0
coredisc2 7
ZV_in_range 14
coredisc0 14
is_nf_extfactor 14
sumdigits_block 14
sumdigits 35
boundfact 42
fromdigits 56
digits 70
sumdigits0 105
check_basis 196
check_arith_pos 210
coredisc 322
_mod4 329
_dvmdii 436
divisors_factored 721
numdiv_aux 760
divisors0 784
numdivu 815
omegau 815
bigomegau 821
uissquarefree_fact 1246
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 2534
sumdiv 3017
core0 3094
digits_dacsmall 3117
fa_clean 3486
arith_n 3500
corediscs 3816
issquarefree 4046
cmpi1 4354
RgV_is_ZVnon0 6811
is_Z_factornon0 6818
divisorsu_moebius 8253
sumdivk 10423
gen_digits 10745
gen_digits_i 10795
set_fact 11515
usumdiv_fact 11518
Z_smoothen 12183
usumdivk_fact 12732
clean_Z_factor 15589
u_euler_sumdiv 15950
RgV_is_ZV0 17052
is_Z_factor 17052
uissquarefree 21768
euler_sumdiv 23138
gen_fromdigits_dac 28896
factoru_pow 31539
RgV_is_prV 40404
is_nf_factor 44135
factor_pn_1 72768
factor_pn_1_limit 72768
factorlim 95070
divisorsu 137274
eulerphi 146195
eulerphiu 150517
gen_digits_dac 206435
_mulii 249302
check_arith_all 262164
eulerphiu_fact 280565
set_fact_check 350749
sumdigitsu 355152
divisors 361508
ndiv 362208
divisors_init 362271
fromdigitsu 923080
get_vB 935946
_sqri 958862
check_arith_non0 2782141
set_vexp 2920618
is_Z_factorpos 3057008
is_Z_factor_i 3080878
fromdigitsu_dac 3091822
RgV_is_ZVpos 6144361
divisorsu_fact 12108101
numdivu_fact 12111583

Generated by: LCOV version 1.13