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 16624-25b9976) Lines: 884 916 96.5 %
Date: 2014-06-24 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 569958
bernfrac 420
bernpol 35
bernpol_i 55
bernvec 25
bernvec_old 20
cxarg 142736
cxgamma 12070
cxpsi 20
dabs 12850
darg 16680
dcxlog 16680
divgunu 747642
divrunu 21807712
dnorm 15
faulhaber 30
gacos 5650
gacosh 5690
gadw 10
gammahs 120
garg 143491
gasin 5820
gasinh 11100
gatan 5665
gatanh 11095
gcosh 9485
ggamma 13015
ggammah 20
glngamma 395
gpsi 360
gsinh 21555
gtanh 71995
mpacos 80
mpacosh 510
mparg 142736
mpasin 75
mpasinh 335
mpatan 142979
mpatanh 75
mpbern 19295
mpcosh 9445
mpfactr 5713
mpsinh 21515
mptanh 71940
nboft 10
rfix 285472
serpsi 325
serpsi1 295
serpsiz0 325
sumformal 35
tr 3630
trans_fix_arg 18825

Generated by: LCOV version 1.9