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 17577-e669ab5) Lines: 1108 1148 96.5 %
Date: 2015-03-01 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 8663232
Zf_mul 639360
Zf_mulsqrt2 8663232
Zf_red_destroy 16315077
Zf_shift 8525430
Zf_sqr 96768
Zf_sub 8864283
addiispec 1435574304
addshiftw 81432051
adduispec 828182997
adduispec_offset 212329032
addumului 543111
affir 91573377
catii 42869268
cmpiispec 1681184781
convi 224551
convi_dac 1031283
diviiexact 261470112
divis 26277
divis_rem 28275738
diviu_rem 94287387
diviuexact 3517398
diviuexact_i 11866905
diviuuexact 54630
divri 10255653
divrr 69322656
dvmdii 433098468
equaliispec 21268896
floorr 268485
incloop 10839651
incneg 4038
incpos 10828947
int_normalize 151839426
mantissa2nr 8545857
muliifft_dis 733011
muliifft_dit 1369617
muliifft_spliti 5871
muliifft_unspliti 3117
muliispec 1094239173
muliispec_basecase 1065717321
muliispec_fft 2754
mulliifft_params 3117
muluispec 1061963847
muluui 71286
p_sqrtu1 9704319
p_sqrtu2 8663352
pari_kernel_close 522
pari_kernel_init 522
red_montgomery 6256404
remi2n 6011115
resetloop 109206
roundr_up_ip 74355893
setloop 1106625
shiftispec 224823018
sqrispec 465164388
sqrispec_basecase 462986307
sqrispec_fft 363
sqrtispec 30094644
sqrtispec1_sh 1040967
sqrtispec2 8660010
sqrtispec2_sh 3342
sqrtr_abs 8652351
sqrtremi 1051968
subiispec 1354915377
subiuspec 795050541
truncr 311220
umodiu 722168358
xmpn_copy 98835231
xmpn_zero 8652351

Generated by: LCOV version 1.9