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 16746-c2cb716) Lines: 557 584 95.4 %
Date: 2014-08-31 Functions: 51 51 100.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 260
check_0 60
check_and_build_nfabs 120
check_and_build_norms 70
do_SWAP 70
eltabstorel 1410
eltabstorel_lift 1445
eltreltoabs 780
fail 35
findmin 260
initmat 20
makenfabs 95
makenorms 5
mattocomplex 10
modulereltoabs 395
nf_all_roots 10
nf_nfzk 75
nf_rnfeq 100
nf_rnfeqsimple 5
nfeltup 185
nfissquarefree 225
nftau 140
nftocomplex 730
prodid 495
prodidnorm 70
rel_T2 10
rnfV_to_nfM 330
rnf_basM 110
rnfeltabstorel 970
rnfeltdown 305
rnfeltreltoabs 165
rnfeltup 185
rnfequation 5
rnfequation0 195
rnfequation2 105
rnfequationall 225
rnfideal0 80
rnfidealabstorel 245
rnfidealdown 150
rnfidealhnf 930
rnfidealmul 35
rnfidealnormabs 145
rnfidealnormrel 140
rnfidealreltoabs 325
rnfidealtwoelement 180
rnfidealup 155
rnfinit 70
rnflllgram 10
rnfpolred 5
rnfprincipaltohnf 540
rnfscal 255

Generated by: LCOV version 1.9