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 20277-2bd9113) Lines: 1105 1148 96.3 %
Date: 2017-02-21 05:49:51 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Zf_add 10146624
Zf_mul 778368
Zf_mulsqrt2 10146624
Zf_red_destroy 19929462
Zf_shift 10347885
Zf_sqr 157056
Zf_sub 10304724
addiispec 1649891132
addshiftw 105812853
adduispec 864568146
adduispec_offset 212552187
addumului 428226
affir 80154489
catii 65190060
cmpiispec 1728123819
convi 245340
convi_dac 1089561
diviiexact 183221759
divis 198318
divis_rem 22006754
diviu_rem 124710261
diviuexact 19792923
diviuexact_i 14207871
diviuuexact 408591
divri 12835794
divrr 64594839
dvmdii 546295530
equaliispec 41286686
floorr 339498
incloop 19324545
incneg 4641
incpos 19304253
int_normalize 188499465
mantissa2nr 8512890
muliifft_dis 930051
muliifft_dit 1704030
muliifft_spliti 9762
muliifft_unspliti 5373
muliispec 1691691023
muliispec_basecase 1657999856
muliispec_fft 4389
mulliifft_params 5373
muluispec 1564864969
muluui 425247
p_sqrtu1 17196948
p_sqrtu2 15281781
pari_kernel_close 603
pari_kernel_init 604
red_montgomery 6844449
remi2n 6112968
resetloop 117531
roundr_up_ip 207309413
setloop 1834002
shiftispec 320295318
sqrispec 545923428
sqrispec_basecase 542369274
sqrispec_fft 984
sqrtispec 47832834
sqrtispec1_sh 1915167
sqrtispec2 15237804
sqrtispec2_sh 43977
sqrtr_abs 15196785
sqrtremi 2000163
subiispec 1264698089
subiuspec 652446937
truncr 1113198
umodiu 900535838
xmpn_copy 152890017
xmpn_zero 15196785

Generated by: LCOV version 1.11