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 16912-212c0f0) Lines: 1108 1148 96.5 %
Date: 2014-10-20 Functions: 69 69 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 924 1110 83.2 %

Function Name Sort by function name Hit count Sort by hit count
Zf_add 7707456
Zf_mul 551040
Zf_mulsqrt2 7707456
Zf_red_destroy 14232291
Zf_shift 7434654
Zf_sqr 98304
Zf_sub 7884618
addiispec 1142061858
addshiftw 65670567
adduispec 726370482
adduispec_offset 193335165
addumului 542013
affir 74994702
catii 39218472
cmpiispec 1193584551
convi 245547
convi_dac 1207782
diviiexact 234349689
divis 18003
divis_rem 26507238
diviu_rem 75739167
diviuexact 3498213
diviuexact_i 10719807
diviuuexact 39690
divri 10138032
divrr 57154986
dvmdii 375331485
equaliispec 16215858
floorr 278319
incloop 10410936
incneg 4038
incpos 10400346
int_normalize 143262474
mantissa2nr 7269873
muliifft_dis 646671
muliifft_dit 1195383
muliifft_spliti 5001
muliifft_unspliti 2673
muliispec 975246354
muliispec_basecase 953196066
muliispec_fft 2328
mulliifft_params 2673
muluispec 886096542
muluui 56346
p_sqrtu1 9181590
p_sqrtu2 8145627
pari_kernel_close 498
pari_kernel_init 498
red_montgomery 6219315
remi2n 5126964
resetloop 109101
roundr_up_ip 65844908
setloop 1098522
shiftispec 209384757
sqrispec 448264275
sqrispec_basecase 446735037
sqrispec_fft 345
sqrtispec 27751653
sqrtispec1_sh 1035963
sqrtispec2 8142417
sqrtispec2_sh 3210
sqrtr_abs 8134875
sqrtremi 1046715
subiispec 1041687510
subiuspec 701866995
truncr 287484
umodiu 560882199
xmpn_copy 90723333
xmpn_zero 8134875

Generated by: LCOV version 1.9