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 16937-4bd9b4e) Lines: 1108 1148 96.5 %
Date: 2014-10-24 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 1142312652
addshiftw 65666007
adduispec 726768066
adduispec_offset 193433298
addumului 542013
affir 74996244
catii 39219396
cmpiispec 1194141567
convi 245538
convi_dac 1207782
diviiexact 234361059
divis 18003
divis_rem 26510817
diviu_rem 75746313
diviuexact 3498528
diviuexact_i 10719813
diviuuexact 39690
divri 10138044
divrr 57155667
dvmdii 375683316
equaliispec 16628646
floorr 278319
incloop 10481427
incneg 4038
incpos 10470834
int_normalize 143400459
mantissa2nr 7270716
muliifft_dis 646671
muliifft_dit 1195383
muliifft_spliti 5001
muliifft_unspliti 2673
muliispec 975890397
muliispec_basecase 953841360
muliispec_fft 2328
mulliifft_params 2673
muluispec 888514530
muluui 56346
p_sqrtu1 9182268
p_sqrtu2 8146119
pari_kernel_close 501
pari_kernel_init 501
red_montgomery 6219870
remi2n 5126970
resetloop 109101
roundr_up_ip 65848475
setloop 1098537
shiftispec 209403552
sqrispec 450221226
sqrispec_basecase 448693248
sqrispec_fft 345
sqrtispec 27752607
sqrtispec1_sh 1036149
sqrtispec2 8142909
sqrtispec2_sh 3210
sqrtr_abs 8135367
sqrtremi 1046901
subiispec 1042055070
subiuspec 702238185
truncr 287484
umodiu 562731873
xmpn_copy 90725853
xmpn_zero 8135367

Generated by: LCOV version 1.9