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 - mp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23353-42c433a02) Lines: 1119 1151 97.2 %
Date: 2018-12-15 05:41:59 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
pari_kernel_close 657
pari_kernel_init 659
sqrispec_fft 1182
incneg 6054
muliispec_fft 10806
muliifft_unspliti 11988
mulliifft_params 11988
muliifft_spliti 22794
resetloop 127959
Zf_sqr 269184
convi 273259
sqrtispec2_sh 324720
diviuuexact 475569
muluui 492237
addumului 535077
floorr 556869
divis 869643
convi_dac 951048
truncr 1449012
Zf_mul 1896576
muliifft_dis 2153772
setloop 2235399
sqrtispec1_sh 2355872
sqrtremi 2764361
muliifft_dit 4039542
remi2n 8437176
mantissa2nr 12044259
diviuexact_i 17184390
sqrtr_abs 19939509
xmpn_zero 19939509
sqrtispec2 20023272
incpos 20330985
p_sqrtu2 20347992
incloop 20585787
red_montgomery 21574278
p_sqrtu1 22703864
divri 24244029
Zf_add 24642624
Zf_mulsqrt2 24642624
Zf_sub 25001739
diviuexact 25278795
Zf_shift 26435667
divis_rem 35147007
Zf_red_destroy 51164184
sqrtispec 64549404
divrr 84183834
catii 89052264
affir 111507627
absdiviu_rem 115589865
equaliispec 115744268
addshiftw 140502147
adduispec_offset 141327201
int_normalize 175579152
xmpn_copy 207283956
diviiexact 231211784
roundr_up_ip 264930095
shiftispec 427238189
dvmdii 556626042
sqrispec_basecase 610080042
sqrispec 614948451
subiuspec 698695503
adduispec 940384639
umodiu 1044760319
subiispec 1394221501
cmpiispec 1821219425
addiispec 1834834799
muluispec 1869080405
muliispec_basecase 1892886443
muliispec 1936807628

Generated by: LCOV version 1.13