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 16962-5a32637) Lines: 884 916 96.5 %
Date: 2014-10-29 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 22823426
dnorm 14
faulhaber 42
gacos 7903
gacosh 7945
gadw 14
gammahs 154
garg 196261
gasin 8141
gasinh 15533
gatan 7910
gatanh 15526
gcosh 13538
ggamma 18123
ggammah 21
glngamma 532
gpsi 476
gsinh 30163
gtanh 100779
mpacos 105
mpacosh 700
mparg 195211
mpasin 98
mpasinh 462
mpatan 195491
mpatanh 98
mpbern 26411
mpcosh 13489
mpfactr 7295
mpsinh 30114
mptanh 100709
nboft 14
rfix 390422
serpsi 441
serpsi1 399
serpsiz0 441
sumformal 49
tr 5082
trans_fix_arg 26278

Generated by: LCOV version 1.9