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 17784-cfd2407) Lines: 888 922 96.3 %
Date: 2015-04-28 Functions: 57 57 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 582 711 81.9 %

Function Name Sort by function name Hit count Sort by hit count
Qp_gamma 28
Qp_gamma_Dwork 14
Qp_gamma_Morita 14
Qp_gamma_neg_Morita 7
acos0 14
bern 1283311
bernfrac 588
bernpol 49
bernpol_i 77
bernvec 28
bernvec_old 21
cxarg 341790
cxgamma 176264
cxpsi 21
dabs 7140
darg 178833
dcxlog 178833
divgunu 562849
divrunu 50879986
dnorm 14
faulhaber 42
gacos 7917
gacosh 7959
gadw 14
gammahs 392
garg 342840
gasin 8155
gasinh 15666
gatan 7966
gatanh 15540
gcosh 3766
ggamma 170408
ggammah 21
glngamma 12625
gpsi 1533
gsinh 350
gtanh 77035
mpacos 105
mpacosh 700
mparg 341790
mpasin 98
mpasinh 469
mpatan 342050
mpatanh 98
mpbern 181360
mpcosh 3703
mpfactr 11893
mpsinh 28
mptanh 76951
nboft 14
rfix 683580
serpsi 1498
serpsi1 987
serpsiz0 1498
sumformal 49
tr 137119
trans_fix_arg 181241

Generated by: LCOV version 1.9