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 17932-6fdb233) Lines: 1108 1148 96.5 %
Date: 2015-08-03 Functions: 69 69 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 925 1110 83.3 %

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 1572995970
addshiftw 85396053
adduispec 845817291
adduispec_offset 217612188
addumului 543120
affir 96567762
catii 50288208
cmpiispec 1907917335
convi 226630
convi_dac 1035075
diviiexact 265365210
divis 193749
divis_rem 29922465
diviu_rem 95520339
diviuexact 3731043
diviuexact_i 13954215
diviuuexact 172902
divri 11851176
divrr 72755667
dvmdii 457111395
equaliispec 21575715
floorr 268659
incloop 10913391
incneg 4638
incpos 10901979
int_normalize 160163850
mantissa2nr 8697465
muliifft_dis 733011
muliifft_dit 1369617
muliifft_spliti 5871
muliifft_unspliti 3117
muliispec 1143019143
muliispec_basecase 1114441233
muliispec_fft 2754
mulliifft_params 3117
muluispec 1111299306
muluui 189558
p_sqrtu1 11177133
p_sqrtu2 10134870
pari_kernel_close 543
pari_kernel_init 543
red_montgomery 6389556
remi2n 6220536
resetloop 109206
roundr_up_ip 85087796
setloop 1135389
shiftispec 242006436
sqrispec 460994058
sqrispec_basecase 458744031
sqrispec_fft 363
sqrtispec 35275251
sqrtispec1_sh 1042263
sqrtispec2 10131147
sqrtispec2_sh 3723
sqrtr_abs 10123473
sqrtremi 1053660
subiispec 1477425720
subiuspec 817426147
truncr 311628
umodiu 737493984
xmpn_copy 115714002
xmpn_zero 10123473

Generated by: LCOV version 1.9