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 20459-9710128) Lines: 975 1012 96.3 %
Date: 2017-03-30 05:32:39 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Hseries 288
Qp_gamma 66
Qp_gamma_Dwork 24
Qp_gamma_Morita 42
Qp_gamma_neg_Morita 24
acos0 12
bern 1383060
bernfrac 6888
bernpol 42
bernpol_i 66
bernvec 24
bernvec_old 18
cxarg 377493
cxgamma 154650
cxpsi 42
dabs 10992
darg 155280
dcxlog 155280
divgunu 566004
divrunu 23891030
dnorm 36
faulhaber 36
gacos 6804
gacosh 6840
gadw 24
gammahs 5280
garg 378471
gasin 7014
gasinh 13470
gatan 16488
gatanh 13350
gcosh 3132
gcotanh 54
ggamma 165720
ggamma1m1 1038
ggammah 18
glngamma 7434
gpsi 7182
gsinh 1176
gtanh 66138
lngamma1 1950
mpacos 90
mpacosh 624
mparg 377493
mpasin 84
mpasinh 414
mpatan 386997
mpatanh 84
mpbern 158964
mpcosh 3066
mpcotanh 6
mpfactr 17742
mpsinh 54
mptanh 66048
nboft 24
rfix 754986
serlngamma0 8886
serpsi 7128
serpsi1 4224
serpsiz0 2892
sumformal 42
tr 637662
trans_fix_arg 160464

Generated by: LCOV version 1.11