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-bordeaux1.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.8.0 lcov report (development 17110-9967e23) Lines: 884 916 96.5 %
Date: 2014-11-26 Functions: 57 57 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 576 709 81.2 %

Function Name Sort by function name Hit count Sort by hit count
Qp_gamma 20
Qp_gamma_Dwork 10
Qp_gamma_Morita 10
Qp_gamma_neg_Morita 5
acos0 10
bern 556710
bernfrac 420
bernpol 35
bernpol_i 55
bernvec 20
bernvec_old 15
cxarg 141077
cxgamma 12030
cxpsi 15
dabs 12840
darg 16635
dcxlog 16635
divgunu 747357
divrunu 16968029
dnorm 10
faulhaber 30
gacos 5645
gacosh 5675
gadw 10
gammahs 110
garg 141827
gasin 5815
gasinh 11095
gatan 5650
gatanh 11090
gcosh 9670
ggamma 12950
ggammah 15
glngamma 385
gpsi 345
gsinh 21545
gtanh 71985
mpacos 75
mpacosh 500
mparg 141077
mpasin 70
mpasinh 330
mpatan 141272
mpatanh 70
mpbern 18865
mpcosh 9635
mpfactr 5206
mpsinh 21510
mptanh 71935
nboft 10
rfix 282154
serpsi 320
serpsi1 290
serpsiz0 320
sumformal 35
tr 3630
trans_fix_arg 18770

Generated by: LCOV version 1.9