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 19374-ac31b96) Lines: 1106 1148 96.3 %
Date: 2016-08-30 06:11:37 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 2040151340
addshiftw 160758579
adduispec 1020008797
adduispec_offset 214092780
addumului 428214
affir 99166248
catii 64650522
cmpiispec 2207164629
convi 236851
convi_dac 1070121
diviiexact 239557279
divis 342861
divis_rem 23868234
diviu_rem 103494333
diviuexact 19740135
diviuexact_i 16594014
diviuuexact 393903
divri 13307187
divrr 82354596
dvmdii 550896572
equaliispec 41099223
floorr 299283
incloop 19022856
incneg 4638
incpos 19002702
int_normalize 221350191
mantissa2nr 9701349
muliifft_dis 2415753
muliifft_dit 4407498
muliifft_spliti 11190
muliifft_unspliti 6135
muliispec 1647086236
muliispec_basecase 1584955942
muliispec_fft 5055
mulliifft_params 6135
muluispec 1577092973
muluui 410559
p_sqrtu1 16798667
p_sqrtu2 14894415
pari_kernel_close 567
pari_kernel_init 568
red_montgomery 6722163
remi2n 7035588
resetloop 117516
roundr_up_ip 210667457
setloop 1793073
shiftispec 398057593
sqrispec 522850951
sqrispec_basecase 518941258
sqrispec_fft 1080
sqrtispec 47179020
sqrtispec1_sh 1904252
sqrtispec2 14853759
sqrtispec2_sh 40656
sqrtr_abs 14812857
sqrtremi 1985810
subiispec 1718283527
subiuspec 922768126
truncr 1078935
umodiu 925425911
xmpn_copy 151343319
xmpn_zero 14812857

Generated by: LCOV version 1.11