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-bordeaux.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 18953-2660f45) Lines: 963 1012 95.2 %
Date: 2016-05-29 Functions: 62 63 98.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 657 803 81.8 %

Function Name Sort by function name Hit count Sort by hit count
Hseries 266
Qp_gamma 77
Qp_gamma_Dwork 28
Qp_gamma_Morita 49
Qp_gamma_neg_Morita 28
acos0 14
bern 1346477
bernfrac 588
bernpol 49
bernpol_i 77
bernvec 28
bernvec_old 21
cxarg 376742
cxgamma 176534
cxpsi 21
dabs 12782
darg 177006
dcxlog 177006
divgunu 782439
divrunu 49501444
dnorm 14
faulhaber 42
gacos 7917
gacosh 7959
gadw 28
gammahs 5530
garg 377876
gasin 8155
gasinh 15652
gatan 24512
gatanh 15540
gcosh 3738
gcotanh 42
ggamma 190288
ggamma1m1 1211
ggammah 21
glngamma 5253
gpsi 7588
gsinh 1253
gtanh 77035
lngamma1 2503
mpacos 105
mpacosh 700
mparg 376742
mpasin 98
mpasinh 469
mpatan 393114
mpatanh 98
mpbern 181969
mpcosh 3675
mpcotanh 0
mpfactr 12300
mpsinh 28
mptanh 76951
nboft 28
rfix 753484
serlngamma0 9268
serpsi 7553
serpsi1 4445
serpsiz0 3094
sumformal 49
tr 696466
trans_fix_arg 183968

Generated by: LCOV version 1.9