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

Generated by: LCOV version 1.13