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.8.0 lcov report (development 19222-cc5b867) Lines: 1106 1148 96.3 %
Date: 2016-07-28 07:10:28 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Zf_add 35440512
Zf_mul 1996800
Zf_mulsqrt2 35440512
Zf_red_destroy 70629726
Zf_shift 36188304
Zf_sqr 425088
Zf_sub 35707443
addiispec 2029541154
addshiftw 158570175
adduispec 1015044846
adduispec_offset 214934472
addumului 326133
affir 97551624
catii 63094764
cmpiispec 2183887941
convi 236448
convi_dac 1070940
diviiexact 239855184
divis 342618
divis_rem 23056134
diviu_rem 103169442
diviuexact 19772946
diviuexact_i 15929043
diviuuexact 390207
divri 13241832
divrr 81644124
dvmdii 536873238
equaliispec 41020149
floorr 289050
incloop 19023462
incneg 4638
incpos 19003308
int_normalize 219983511
mantissa2nr 9583626
muliifft_dis 2415753
muliifft_dit 4407498
muliifft_spliti 11190
muliifft_unspliti 6135
muliispec 1644087615
muliispec_basecase 1582253058
muliispec_fft 5055
mulliifft_params 6135
muluispec 1563301176
muluui 406863
p_sqrtu1 16459263
p_sqrtu2 14659344
pari_kernel_close 564
pari_kernel_init 564
red_montgomery 6723033
remi2n 6899088
resetloop 117516
roundr_up_ip 208859348
setloop 1793352
shiftispec 400846821
sqrispec 516882099
sqrispec_basecase 513374127
sqrispec_fft 1080
sqrtispec 46202478
sqrtispec1_sh 1799919
sqrtispec2 14655096
sqrtispec2_sh 4248
sqrtr_abs 14647359
sqrtremi 1811904
subiispec 1703711367
subiuspec 910691626
truncr 1044162
umodiu 914467725
xmpn_copy 147911451
xmpn_zero 14647359

Generated by: LCOV version 1.11