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 17932-6fdb233) Lines: 928 977 95.0 %
Date: 2015-07-30 Functions: 59 60 98.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 618 757 81.6 %

Function Name Sort by function name Hit count Sort by hit count
Qp_gamma 77
Qp_gamma_Dwork 28
Qp_gamma_Morita 49
Qp_gamma_neg_Morita 28
acos0 14
bern 1017573
bernfrac 588
bernpol 49
bernpol_i 77
bernvec 28
bernvec_old 21
cxarg 341804
cxgamma 170584
cxpsi 21
dabs 7140
darg 171798
dcxlog 171798
divgunu 539182
divrunu 50410725
dnorm 14
faulhaber 42
gacos 7917
gacosh 7959
gadw 28
gammahs 392
garg 342854
gasin 8155
gasinh 15652
gatan 7966
gatanh 15540
gcosh 3766
gcotanh 42
ggamma 170282
ggammah 21
glngamma 7080
gpsi 1540
gsinh 350
gtanh 77035
lngamma1 1313
mpacos 105
mpacosh 700
mparg 341804
mpasin 98
mpasinh 469
mpatan 342064
mpatanh 98
mpbern 173961
mpcosh 3703
mpcotanh 0
mpfactr 11768
mpsinh 28
mptanh 76951
nboft 28
rfix 683608
serpsi 1505
serpsi1 994
serpsiz0 1505
sumformal 49
tr 137119
trans_fix_arg 175197

Generated by: LCOV version 1.9