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 21343-6216058) Lines: 1031 1114 92.5 %
Date: 2017-11-19 06:21: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
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
rnfinit 413
rnfequation 420
rnfidealabstorel 455
rnfV_to_nfM 476
rnfidealreltoabs_i 490
rnfprincipaltohnf 770
mkupdown 903
mknfabs 904
rnf_zkabs 959
nftocomplex 1022
rnfidealup0 1043
nf_nfzk 1127
rnfinit0 1127
nf_rnfeq 1197
rnfequation2 1211
rnfidealhnf 1316
modulereltoabs 1407
rnfcomplete 1533
rnfeltdown 1540
rnfequation0 1757
rnfeltdown0 1785
rnfequationall 1813
nfhnfmod 1827
rnfeltup 5320
rnfeltup0 5586
nfhnf 6482
nfhnf0 6496
idV_simplify 8274
nfcleanmod 15624
eltabstorel 20090
eltabstorel_lift 20174
eltreltoabs 21413
rnf_build_nfabs 22463
element_close 30520
rnfeltreltoabs 41930
rnfeltabstorel 45038
zero_nfbezout 54229
nfbezout 58254
colcomb 98882
colcomb1 115528

Generated by: LCOV version 1.11