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.0 lcov report (development 20777-d2a9243) Lines: 1105 1148 96.3 %
Date: 2017-06-25 05:59:24 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Zf_add 10270464
Zf_mul 787200
Zf_mulsqrt2 10270464
Zf_red_destroy 20201658
Zf_shift 10486422
Zf_sqr 157056
Zf_sub 10434792
addiispec 1866100704
addshiftw 106902468
adduispec 934045512
adduispec_offset 212826069
addumului 428232
affir 82251627
catii 67197666
cmpiispec 2030135376
convi 254662
convi_dac 1009461
diviiexact 181468161
divis 227526
divis_rem 32104998
diviu_rem 126138249
diviuexact 21989187
diviuexact_i 15562896
diviuuexact 423375
divri 13033995
divrr 65617845
dvmdii 556673816
equaliispec 78923889
floorr 359082
incloop 19449108
incneg 4641
incpos 19416699
int_normalize 190449834
mantissa2nr 9015021
muliifft_dis 938883
muliifft_dit 1721694
muliifft_spliti 9762
muliifft_unspliti 5373
muliispec 1774175608
muliispec_basecase 1740290401
muliispec_fft 4389
mulliifft_params 5373
muluispec 1677621129
muluui 440031
p_sqrtu1 18132659
p_sqrtu2 16008120
pari_kernel_close 615
pari_kernel_init 616
red_montgomery 7113003
remi2n 6196095
resetloop 127959
roundr_up_ip 211140668
setloop 1838172
shiftispec 334002109
sqrispec 550055268
sqrispec_basecase 546543864
sqrispec_fft 984
sqrtispec 49315191
sqrtispec1_sh 2124539
sqrtispec2 15716358
sqrtispec2_sh 291762
sqrtr_abs 15670113
sqrtremi 2462546
subiispec 1443583525
subiuspec 674039397
truncr 1124892
umodiu 941954328
xmpn_copy 157538808
xmpn_zero 15670113

Generated by: LCOV version 1.11