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 - kernel/none - level1.h (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 604 765 79.0 %
Date: 2024-05-18 08:06:58 Functions: 218 285 76.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Mod64 0
addiiz 0
addirz 0
addriz 0
addsiz 0
addsrz 0
addssz 0
affectsign 0
affsz 0
diviiz 0
divirz 0
divisz 0
divriz 0
divrsz 0
divsi_rem 0
divsiz 0
divsrz 0
divss 0
divss_rem 0
divssz 0
dvdisz 0
dvdiuz 0
dvmdiiz 0
dvmdis 0
dvmdisz 0
dvmdsi 0
dvmdsiz 0
dvmdss 0
dvmdssz 0
get_avma 0
mod64 0
modisz 0
modsiz 0
modss 0
modssz 0
mpaddz 0
mpceil 0
mpfloor 0
mpmulz 0
mpsubz 0
muliiz 0
mulirz 0
mulriz 0
mulsiz 0
mulsrz 0
mulssz 0
rdivis 0
rdivsi 0
real_m2n 0
remiiz 0
remis 0
remisz 0
remsi 0
remsiz 0
remss 0
remssz 0
sdivss_rem 0
shiftl 0
shiftlr 0
subirz 0
subisz 0
subriz 0
subrsz 0
subsiz 0
subsrz 0
subssz 0
varnmin 0
subiiz 28
mptrunc 49
absr 140
varnmax 203
mod32 259
dvdsi 371
real_m1 393
divrrz 504
mpcopy 707
stack_calloc_align 956
ugcdui 2737
dvdiiz 5431
smodss 6914
uabsdivui_rem 15773
addss 25067
subss 25067
subuu 25067
cgetr_block 32411
dvdis 33520
cmprs 40996
stack_calloc 91847
sdivsi 100947
gc_stoi 150826
dvdui 167195
subis 169860
Mod32 183225
mulrrz 192514
ugcdiu 211610
Fl_ellj_pre 219833
mod16 236258
uutoineg 246308
truedivis 248122
mindd 251169
Mod16 260401
affiz 266760
cgetg_block 363836
cmpri 445375
gc_utoi 469015
dvdiu 576507
cmpsr 644812
mpaff 658462
mpdiv 663924
real_0 775659
rdivss 839647
real2n 1019549
equalis 1025694
equalsi 1025876
addri 1098676
gc_utoipos 1115782
cmpss 1289805
subrrz 1296706
addrrz 1307078
absrnz_equal2n 1345481
umodui 1511727
Mod2 1717695
Mod8 1780954
mpround 1848109
ceildivuu 2015151
mpcmp 2126049
itou_or_0 2524529
gc_int 2557293
mulru 2766284
equalui 2916489
equaliu 2916491
subir 3011489
maxdd 3025020
cmpis 3491446
cmpsi 3516791
negr 3526394
Fl_center 3928665
mod4 4084379
absrnz_equal1 4205875
real_1_bit 4478535
umuluu_or_0 5379400
umuluu_le 5620307
subsi 5820434
affsi 5926873
subri 5959907
truedivsi 6197775
gc_NULL 6941042
mulrs 7114592
fractor 7353735
uabsdiviu_rem 8349446
cmpiu 8744225
cmpui 8744246
minuu 9450330
affectsign_safe 9997205
cmpir 10401374
rdivii 11898992
rdiviiz 11943874
addrs 12008181
stack_malloc 12562304
mod8 12788063
divii 13161328
utor 13242603
affur 13242724
mpabs_shallow 13431420
subrs 15990236
dvdii 16534987
Fl_halve 16889006
evalprecp 19356949
maxuu 19548038
modis 19602389
smodis 21063940
evalvalser 21353062
int_bit 21921857
itos_or_0 22428013
gc_ulong 29159135
Fl_div 33004287
abscmpiu 33217489
abscmpui 33217684
mpexpo 33227120
mulri 34230211
evalvalp 36278503
absequaliu 39879207
absequalui 41604602
Mod4 42485682
affui 44603025
modsi 45217315
truedivii 45890047
umodi2n 46428825
gc_bool 48088364
absi_shallow 49591136
sdivsi_rem 51415336
mod2 52979937
stack_malloc_align 54685236
Fl_addmulmul_pre 55572856
affrr_fixlg 56512220
remlll_pre 81795958
mpsqr 82487800
mpodd 84259199
Fl_triple 88615178
addiu 90392886
mod2BIL 92808405
addui 93673884
Fl_sqr 96572592
fixlg 104103163
icopyspec 114606837
togglesign_safe 122238331
real_1 126593157
subiu 127057787
subui 131270805
mpshift 147634682
itou 153889445
udivuu_rem 158565677
varncmp 162310123
dvmduBIL 164248916
shiftr 170219899
addis 170770224
gc_double 176791625
vali 177697102
gc_long 223794928
utoineg 247110061
cgetineg 247956767
mpsub 250167398
rtor 290485012
addsi 295934299
muliu 363558903
Fl_double 440466400
itos 451965557
shiftr_inplace 455061621
addir 472796378
mulis 482706249
affsr 486202511
stor 486548922
real_0_bit 487337861
affii 588119381
mpadd 589485476
negi 593805911
itor 684853851
absi 691523571
Fl_neg 697509657
umodsu 715996590
stoi 717602027
mpabs 760996176
expu 776174931
lg2prec 793189530
setabssign 832826575
mpmul 840984791
mpneg 864054711
rcopy 905561247
subrr 958660076
cgetg_copy 1221567205
cmpuu 1441012079
minss 1646418509
cgetr 1801368870
togglesign 1826789599
expi 1986072386
Fl_sqr_pre 1993795199
Fl_mul 2261853693
nbits2lg 2337107503
remii 2474086211
addrr 2827002996
adduu 3124369546
stackdummy 3304667568
Fl_mul_pre 3336217940
leafcopy 3504981763
Fl_add 4077031434
shift_right 5481072357
Fl_sub 6727271821
dvmdsBIL 6813010507
Fl_addmul_pre 7074428938
shift_left 7130077442
subii 7506607570
icopy 7652189788
uutoi 7945469809
maxss 9057157515
addii 10323371237
utoi 10656284765
utoipos 12645118801
evalexpo 12776830922
gc_const 13951492234
cgetipos 14564036971
cgetg 23255248903
cgeti 24442655359
new_chunk 84029047558
evallg 87073717527
set_avma 116380133630

Generated by: LCOV version 1.14