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-bordeaux.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.10.1 lcov report (development 22726-9e20c6a88) Lines: 1112 1143 97.3 %
Date: 2018-06-23 05:36:28 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Zf_add 24254592
Zf_mul 1863168
Zf_mulsqrt2 24254592
Zf_red_destroy 50366214
Zf_shift 26024142
Zf_sqr 268416
Zf_sub 24608844
absdiviu_rem 108926583
addiispec 1761257994
addshiftw 134860755
adduispec 885914375
adduispec_offset 138823773
addumului 534984
affir 103339329
catii 81013614
cmpiispec 1751423376
convi 266253
convi_dac 923352
diviiexact 224769088
divis 315456
divis_rem 32853855
diviuexact 24798984
diviuexact_i 16601265
diviuuexact 441918
divri 15203634
divrr 80853780
dvmdii 534277126
equaliispec 89079516
floorr 542850
incloop 20421345
incneg 4704
incpos 20167923
int_normalize 166564113
mantissa2nr 11739036
muliifft_dis 2119785
muliifft_dit 3972333
muliifft_spliti 22419
muliifft_unspliti 11799
muliispec 1870194747
muliispec_basecase 1827098310
muliispec_fft 10620
mulliifft_params 11799
muluispec 1781393433
muluui 458574
p_sqrtu1 21346029
p_sqrtu2 19073148
pari_kernel_close 651
pari_kernel_init 653
red_montgomery 21506463
remi2n 8284911
resetloop 127959
roundr_up_ip 253550732
setloop 2174928
shiftispec 406092867
sqrispec 605676801
sqrispec_basecase 600813366
sqrispec_fft 1179
sqrtispec 59255655
sqrtispec1_sh 2272881
sqrtispec2 18748848
sqrtispec2_sh 324300
sqrtr_abs 18665463
sqrtremi 2680569
subiispec 1341294431
subiuspec 682283791
truncr 1438968
umodiu 1025514669
xmpn_copy 189538653
xmpn_zero 18665463

Generated by: LCOV version 1.13