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 - basemath - trans2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20838-243a3c2) Lines: 993 1034 96.0 %
Date: 2017-07-28 06:22:09 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Hseries 406
Qp_gamma 77
Qp_gamma_Dwork 28
Qp_gamma_Morita 49
Qp_gamma_neg_Morita 28
acos0 14
bern 1653758
bernfrac 8883
bernpol 126
bernpol_i 154
bernvec 28
bernvec_old 21
cxarg 486240
cxgamma 180582
cxpsi 49
dabs 12824
darg 181335
dcxlog 181335
divgunu 660059
divrunu 28871846
dnorm 42
faulhaber 42
gacos 7938
gacosh 7980
gadw 28
gammahs 6111
garg 487381
gasin 8183
gasinh 15715
gatan 19262
gatanh 15603
gcosh 3654
gcotanh 63
ggamma 194355
ggamma1m1 1211
ggammah 21
glngamma 8685
gpsi 8827
gsinh 1708
gtanh 77161
lngamma1 2257
mpacos 105
mpacosh 728
mparg 486240
mpasin 98
mpasinh 483
mpatan 497327
mpatanh 98
mpbern 185710
mpcosh 3577
mpcotanh 7
mpfactr 20897
mpsinh 63
mptanh 77056
nboft 28
rfix 972480
serlngamma0 11046
serpsi 8764
serpsi1 5628
serpsiz0 3122
sumformal 49
tr 689138
trans_fix_arg 187365

Generated by: LCOV version 1.11