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 16962-5a32637) Lines: 1108 1148 96.5 %
Date: 2014-10-29 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 7707456
Zf_mul 551040
Zf_mulsqrt2 7707456
Zf_red_destroy 14232291
Zf_shift 7434654
Zf_sqr 98304
Zf_sub 7884618
addiispec 1144238064
addshiftw 65729154
adduispec 728677635
adduispec_offset 193433184
addumului 542013
affir 75070899
catii 39345810
cmpiispec 1194395784
convi 245605
convi_dac 1207782
diviiexact 234375669
divis 18003
divis_rem 26513850
diviu_rem 75779676
diviuexact 3515700
diviuexact_i 10733535
diviuuexact 54630
divri 10163973
divrr 57191670
dvmdii 375618942
equaliispec 16642434
floorr 280881
incloop 10481427
incneg 4038
incpos 10470834
int_normalize 143526891
mantissa2nr 7279779
muliifft_dis 646671
muliifft_dit 1195383
muliifft_spliti 5001
muliifft_unspliti 2673
muliispec 972992154
muliispec_basecase 950943147
muliispec_fft 2328
mulliifft_params 2673
muluispec 885698550
muluui 71286
p_sqrtu1 9205518
p_sqrtu2 8168760
pari_kernel_close 501
pari_kernel_init 501
red_montgomery 6219591
remi2n 5134638
resetloop 109101
roundr_up_ip 66655955
setloop 1098537
shiftispec 206342880
sqrispec 449288625
sqrispec_basecase 447760647
sqrispec_fft 345
sqrtispec 27838452
sqrtispec1_sh 1036758
sqrtispec2 8165547
sqrtispec2_sh 3213
sqrtr_abs 8158002
sqrtremi 1047516
subiispec 1042152417
subiuspec 702253410
truncr 289344
umodiu 558263133
xmpn_copy 91015281
xmpn_zero 8158002

Generated by: LCOV version 1.9