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 16804-345a01c) Lines: 884 916 96.5 %
Date: 2014-09-20 Functions: 57 57 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 579 709 81.7 %

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 791293
bernfrac 588
bernpol 49
bernpol_i 77
bernvec 35
bernvec_old 28
cxarg 195484
cxgamma 16898
cxpsi 28
dabs 17990
darg 23352
dcxlog 23352
divgunu 1046800
divrunu 29657916
dnorm 21
faulhaber 42
gacos 7910
gacosh 7966
gadw 14
gammahs 168
garg 196541
gasin 8148
gasinh 15540
gatan 7931
gatanh 15533
gcosh 13552
ggamma 18207
ggammah 28
glngamma 539
gpsi 490
gsinh 30177
gtanh 100793
mpacos 112
mpacosh 714
mparg 195484
mpasin 105
mpasinh 469
mpatan 195799
mpatanh 105
mpbern 27027
mpcosh 13496
mpfactr 8115
mpsinh 30121
mptanh 100716
nboft 14
rfix 390968
serpsi 441
serpsi1 399
serpsiz0 441
sumformal 49
tr 5082
trans_fix_arg 26355

Generated by: LCOV version 1.9