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 - kernel/none - mp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21203-392a176) Lines: 1105 1148 96.3 %
Date: 2017-10-23 06:23:29 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Zf_add 26580672
Zf_mul 2039424
Zf_mulsqrt2 26580672
Zf_red_destroy 54346374
Zf_shift 28112811
Zf_sqr 165888
Zf_sub 26862411
addiispec 1780794073
addshiftw 130023834
adduispec 859389685
adduispec_offset 132065868
addumului 428328
affir 85080777
catii 67484676
cmpiispec 1787769700
convi 258811
convi_dac 1013175
diviiexact 182254618
divis 239007
divis_rem 36018324
diviu_rem 111380148
diviuexact 25453407
diviuexact_i 15950577
diviuuexact 402138
divri 13097175
divrr 67187322
dvmdii 517265781
equaliispec 92694875
floorr 348162
incloop 19682190
incneg 4641
incpos 19649778
int_normalize 152726817
mantissa2nr 9651831
muliifft_dis 2193726
muliifft_dit 4222599
muliifft_spliti 22137
muliifft_unspliti 11586
muliispec 1805063553
muliispec_basecase 1759623393
muliispec_fft 10551
mulliifft_params 11586
muluispec 1732991269
muluui 418794
p_sqrtu1 18650889
p_sqrtu2 16425465
pari_kernel_close 636
pari_kernel_init 638
red_montgomery 24043953
remi2n 6625221
resetloop 127959
roundr_up_ip 227432831
setloop 1870956
shiftispec 380913972
sqrispec 606907665
sqrispec_basecase 603390237
sqrispec_fft 1035
sqrtispec 49876023
sqrtispec1_sh 2225424
sqrtispec2 16133685
sqrtispec2_sh 291780
sqrtr_abs 16068606
sqrtremi 2582283
subiispec 1352710951
subiuspec 669277796
truncr 1200999
umodiu 956523352
xmpn_copy 158689242
xmpn_zero 16068606

Generated by: LCOV version 1.11