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 17707-04f73e4) Lines: 889 921 96.5 %
Date: 2015-03-28 Functions: 57 57 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 584 711 82.1 %

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 777155
bernfrac 588
bernpol 49
bernpol_i 77
bernvec 28
bernvec_old 21
cxarg 193492
cxgamma 11515
cxpsi 21
dabs 7140
darg 14084
dcxlog 14084
divgunu 417395
divrunu 40418382
dnorm 14
faulhaber 42
gacos 7917
gacosh 7959
gadw 14
gammahs 161
garg 194542
gasin 8155
gasinh 15561
gatan 7966
gatanh 15540
gcosh 11249
ggamma 12817
ggammah 21
glngamma 553
gpsi 490
gsinh 98
gtanh 136969
mpacos 105
mpacosh 700
mparg 193492
mpasin 98
mpasinh 469
mpatan 193786
mpatanh 98
mpbern 15442
mpcosh 11186
mpfactr 7309
mpsinh 28
mptanh 136885
nboft 14
rfix 386984
serpsi 455
serpsi1 406
serpsiz0 455
sumformal 49
tr 6076
trans_fix_arg 15309

Generated by: LCOV version 1.9