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 - base5.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16912-212c0f0) Lines: 556 584 95.2 %
Date: 2014-10-20 Functions: 50 51 98.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 250 314 79.6 %

Function Name Sort by function name Hit count Sort by hit count
RED 364
check_0 84
check_and_build_nfabs 168
check_and_build_norms 98
do_SWAP 98
eltabstorel 1974
eltabstorel_lift 2023
eltreltoabs 1092
fail 49
findmin 364
initmat 28
makenfabs 133
makenorms 7
mattocomplex 14
modulereltoabs 553
nf_all_roots 14
nf_nfzk 105
nf_rnfeq 140
nf_rnfeqsimple 7
nfeltup 259
nfissquarefree 301
nftau 196
nftocomplex 1022
prodid 693
prodidnorm 98
rel_T2 14
rnfV_to_nfM 462
rnf_basM 154
rnfeltabstorel 1358
rnfeltdown 427
rnfeltreltoabs 231
rnfeltup 259
rnfequation 0
rnfequation0 259
rnfequation2 140
rnfequationall 301
rnfideal0 112
rnfidealabstorel 343
rnfidealdown 210
rnfidealhnf 1302
rnfidealmul 49
rnfidealnormabs 203
rnfidealnormrel 196
rnfidealreltoabs 455
rnfidealtwoelement 252
rnfidealup 217
rnfinit 98
rnflllgram 14
rnfpolred 7
rnfprincipaltohnf 756
rnfscal 357

Generated by: LCOV version 1.9