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 16912-212c0f0) Lines: 884 916 96.5 %
Date: 2014-10-20 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 28
Qp_gamma_Dwork 14
Qp_gamma_Morita 14
Qp_gamma_neg_Morita 7
acos0 14
bern 782114
bernfrac 588
bernpol 49
bernpol_i 77
bernvec 28
bernvec_old 21
cxarg 195211
cxgamma 16842
cxpsi 21
dabs 17976
darg 23289
dcxlog 23289
divgunu 1046401
divrunu 22773700
dnorm 14
faulhaber 42
gacos 7903
gacosh 7945
gadw 14
gammahs 154
garg 196261
gasin 8141
gasinh 15533
gatan 7910
gatanh 15526
gcosh 13594
ggamma 18113
ggammah 21
glngamma 522
gpsi 466
gsinh 30163
gtanh 100779
mpacos 105
mpacosh 700
mparg 195211
mpasin 98
mpasinh 462
mpatan 195491
mpatanh 98
mpbern 26924
mpcosh 13545
mpfactr 7810
mpsinh 30114
mptanh 100709
nboft 14
rfix 390422
serpsi 431
serpsi1 389
serpsiz0 431
sumformal 49
tr 5082
trans_fix_arg 26278

Generated by: LCOV version 1.9