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 20084-3366ab4) Lines: 963 1014 95.0 %
Date: 2017-01-19 05:50:13 Functions: 62 63 98.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Hseries 322
Qp_gamma 77
Qp_gamma_Dwork 28
Qp_gamma_Morita 49
Qp_gamma_neg_Morita 28
acos0 14
bern 1652148
bernfrac 7364
bernpol 49
bernpol_i 77
bernvec 28
bernvec_old 21
cxarg 425025
cxgamma 180232
cxpsi 28
dabs 12796
darg 180964
dcxlog 180964
divgunu 705489
divrunu 29534238
dnorm 21
faulhaber 42
gacos 7917
gacosh 7959
gadw 28
gammahs 6153
garg 426159
gasin 8155
gasinh 15680
gatan 24570
gatanh 15540
gcosh 3626
gcotanh 42
ggamma 193214
ggamma1m1 1211
ggammah 21
glngamma 8566
gpsi 8344
gsinh 1323
gtanh 77119
lngamma1 2257
mpacos 105
mpacosh 700
mparg 425025
mpasin 98
mpasinh 469
mpatan 441483
mpatanh 98
mpbern 185773
mpcosh 3563
mpcotanh 0
mpfactr 20216
mpsinh 28
mptanh 77035
nboft 28
rfix 850050
serlngamma0 10353
serpsi 8302
serpsi1 4914
serpsiz0 3374
sumformal 49
tr 735605
trans_fix_arg 187505

Generated by: LCOV version 1.11