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-bordeaux1.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 17404-c89e0b8) Lines: 1108 1148 96.5 %
Date: 2015-01-29 Functions: 69 69 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 923 1110 83.2 %

Function Name Sort by function name Hit count Sort by hit count
Zf_add 7959744
Zf_mul 592512
Zf_mulsqrt2 7959744
Zf_red_destroy 14824932
Zf_shift 7760361
Zf_sqr 85632
Zf_sub 8151546
addiispec 1405359627
addshiftw 77852421
adduispec 784841589
adduispec_offset 197644413
addumului 543087
affir 91566939
catii 42637188
cmpiispec 1641109860
convi 222198
convi_dac 1031529
diviiexact 244594119
divis 26052
divis_rem 30814806
diviu_rem 93883953
diviuexact 3717834
diviuexact_i 11757801
diviuuexact 54630
divri 10276014
divrr 69297678
dvmdii 403197225
equaliispec 20431995
floorr 268473
incloop 10839141
incneg 4038
incpos 10828437
int_normalize 148589058
mantissa2nr 8540256
muliifft_dis 675177
muliifft_dit 1265037
muliifft_spliti 5619
muliifft_unspliti 2967
muliispec 1067067201
muliispec_basecase 1040335623
muliispec_fft 2652
mulliifft_params 2967
muluispec 1005792009
muluui 71286
p_sqrtu1 9651582
p_sqrtu2 8610840
pari_kernel_close 519
pari_kernel_init 519
red_montgomery 6254691
remi2n 6011808
resetloop 109101
roundr_up_ip 73643414
setloop 1106535
shiftispec 222115473
sqrispec 496110213
sqrispec_basecase 493923339
sqrispec_fft 315
sqrtispec 29926107
sqrtispec1_sh 1040742
sqrtispec2 8607513
sqrtispec2_sh 3327
sqrtr_abs 8599896
sqrtremi 1051686
subiispec 1321739358
subiuspec 765840045
truncr 312216
umodiu 584456673
xmpn_copy 98278350
xmpn_zero 8599896

Generated by: LCOV version 1.9