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 17240-4611fa9) Lines: 889 921 96.5 %
Date: 2014-12-21 Functions: 57 57 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 583 711 82.0 %

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 205145
cxgamma 16856
cxpsi 21
dabs 17976
darg 23303
dcxlog 23303
divgunu 1046401
divrunu 22929025
dnorm 14
faulhaber 42
gacos 7903
gacosh 7945
gadw 14
gammahs 161
garg 206195
gasin 8141
gasinh 15533
gatan 7910
gatanh 15526
gcosh 13538
ggamma 18158
ggammah 21
glngamma 553
gpsi 490
gsinh 30163
gtanh 100779
mpacos 105
mpacosh 700
mparg 205145
mpasin 98
mpasinh 462
mpatan 205418
mpatanh 98
mpbern 26425
mpcosh 13489
mpfactr 7309
mpsinh 30114
mptanh 100709
nboft 14
rfix 410290
serpsi 455
serpsi1 406
serpsiz0 455
sumformal 49
tr 6076
trans_fix_arg 26292

Generated by: LCOV version 1.9