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 19821-98a93fe) Lines: 956 1014 94.3 %
Date: 2016-12-02 05:49:16 Functions: 62 63 98.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Hseries 301
Qp_gamma 77
Qp_gamma_Dwork 28
Qp_gamma_Morita 49
Qp_gamma_neg_Morita 28
acos0 14
bern 1346477
bernfrac 588
bernpol 49
bernpol_i 77
bernvec 28
bernvec_old 21
cxarg 390148
cxgamma 176900
cxpsi 21
dabs 12782
darg 177378
dcxlog 177378
divgunu 782439
divrunu 28937948
dnorm 14
faulhaber 42
gacos 7917
gacosh 7959
gadw 28
gammahs 5845
garg 391282
gasin 8155
gasinh 15652
gatan 24568
gatanh 15540
gcosh 3626
gcotanh 42
ggamma 191590
ggamma1m1 1211
ggammah 21
glngamma 5283
gpsi 8043
gsinh 1274
gtanh 77119
lngamma1 2518
mpacos 105
mpacosh 700
mparg 390148
mpasin 98
mpasinh 469
mpatan 406611
mpatanh 98
mpbern 182341
mpcosh 3563
mpcotanh 0
mpfactr 12328
mpsinh 28
mptanh 77035
nboft 28
rfix 780296
serlngamma0 9891
serpsi 8008
serpsi1 4767
serpsiz0 3227
sumformal 49
tr 700619
trans_fix_arg 184334

Generated by: LCOV version 1.11