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 17110-9967e23) Lines: 1108 1148 96.5 %
Date: 2014-11-26 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 7959744
Zf_mul 592512
Zf_mulsqrt2 7959744
Zf_red_destroy 14824932
Zf_shift 7760361
Zf_sqr 85632
Zf_sub 8151546
addiispec 1216881198
addshiftw 71673030
adduispec 773875440
adduispec_offset 196725990
addumului 542943
affir 89195373
catii 42004512
cmpiispec 1289790849
convi 248090
convi_dac 1211796
diviiexact 237327066
divis 18147
divis_rem 27411390
diviu_rem 81798789
diviuexact 3613554
diviuexact_i 11163948
diviuuexact 54630
divri 10236606
divrr 67664958
dvmdii 391715547
equaliispec 16934247
floorr 297681
incloop 10837740
incneg 4038
incpos 10827051
int_normalize 147320073
mantissa2nr 8226057
muliifft_dis 675177
muliifft_dit 1265037
muliifft_spliti 5619
muliifft_unspliti 2967
muliispec 1034936037
muliispec_basecase 1010432484
muliispec_fft 2652
mulliifft_params 2967
muluispec 967282233
muluui 71286
p_sqrtu1 9590436
p_sqrtu2 8551998
pari_kernel_close 516
pari_kernel_init 516
red_montgomery 6220662
remi2n 5858493
resetloop 109101
roundr_up_ip 72854057
setloop 1106151
shiftispec 215291718
sqrispec 454142856
sqrispec_basecase 452667168
sqrispec_fft 315
sqrtispec 29550951
sqrtispec1_sh 1038438
sqrtispec2 8548695
sqrtispec2_sh 3303
sqrtr_abs 8541111
sqrtremi 1049325
subiispec 1133836068
subiuspec 755329734
truncr 395394
umodiu 555289458
xmpn_copy 96895527
xmpn_zero 8541111

Generated by: LCOV version 1.9