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 17238-ce76349) Lines: 1108 1148 96.5 %
Date: 2014-12-20 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 1385709627
addshiftw 77315556
adduispec 779480907
adduispec_offset 197113809
addumului 543087
affir 89970918
catii 41581758
cmpiispec 1611225390
convi 261570
convi_dac 1223856
diviiexact 244778292
divis 20454
divis_rem 27634029
diviu_rem 86944980
diviuexact 3647514
diviuexact_i 11665149
diviuuexact 54630
divri 10254816
divrr 68100111
dvmdii 401724576
equaliispec 20412645
floorr 268365
incloop 10839057
incneg 4038
incpos 10828368
int_normalize 147262182
mantissa2nr 8360598
muliifft_dis 675177
muliifft_dit 1265037
muliifft_spliti 5619
muliifft_unspliti 2967
muliispec 1059873582
muliispec_basecase 1033146564
muliispec_fft 2652
mulliifft_params 2967
muluispec 993420246
muluui 71286
p_sqrtu1 9551712
p_sqrtu2 8510838
pari_kernel_close 519
pari_kernel_init 519
red_montgomery 6219285
remi2n 5903979
resetloop 109101
roundr_up_ip 73010798
setloop 1106520
shiftispec 219385737
sqrispec 492535779
sqrispec_basecase 490348920
sqrispec_fft 315
sqrtispec 29298390
sqrtispec1_sh 1040874
sqrtispec2 8507511
sqrtispec2_sh 3327
sqrtr_abs 8499909
sqrtremi 1051803
subiispec 1294370514
subiuspec 762354315
truncr 310653
umodiu 579335601
xmpn_copy 95984982
xmpn_zero 8499909

Generated by: LCOV version 1.9