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 - base5.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 22307-7f6745a) Lines: 1031 1114 92.5 %
Date: 2018-04-22 06:16:17 Functions: 72 76 94.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgV_find_denom 0
eltdown 0
nfsnf 0
rnfidealreltoabs 0
nfreduce 7
rnfpolred 7
mattocomplex 14
nf_all_roots 14
nfdetint 14
rel_T2 14
rnflllgram 14
nf_rnfeqsimple 21
nfsnf0 21
initmat 28
rnfidealfactor 35
rnfidealprimedec 35
rnfidealprimedec_1 35
fail 49
rnfidealmul 49
check_0 84
do_SWAP 98
prodidnorm 105
rnfequation 112
rnfideal0 154
rowcomb 154
nftau 196
rnfidealnormrel 196
rnfidealnormabs 203
rnfidealdown 217
rnfidealup 217
element_mulvecrow 231
rnfidealreltoabs0 238
rnfidealtwoelement 252
nfeltup 259
rnfscal 357
RED 364
findmin 364
rnfidealabstorel 455
rnfinit 455
rnfV_to_nfM 476
rnfidealreltoabs_i 490
rnfprincipaltohnf 770
mkupdown 924
mknfabs 925
rnf_zkabs 1001
nftocomplex 1022
rnfidealup0 1064
nf_nfzk 1169
rnfinit0 1169
nf_rnfeq 1239
rnfequation2 1253
rnfidealhnf 1316
modulereltoabs 1449
rnfequation0 1491
rnfequationall 1547
rnfcomplete 1554
rnfeltdown 1638
nfhnfmod 1876
rnfeltdown0 1883
rnfeltup 5390
rnfeltup0 5656
nfhnf 6545
nfhnf0 6559
idV_simplify 8386
nfcleanmod 15981
eltabstorel 20132
eltabstorel_lift 20167
eltreltoabs 21644
rnf_build_nfabs 22792
element_close 30891
rnfeltreltoabs 42287
rnfeltabstorel 45283
zero_nfbezout 54915
nfbezout 59066
colcomb 100114
colcomb1 117047

Generated by: LCOV version 1.11