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 21940-9a7b1a1) Lines: 1031 1114 92.5 %
Date: 2018-02-22 06:15:58 Functions: 72 76 94.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RED 364
RgV_find_denom 0
check_0 84
colcomb 100114
colcomb1 117047
do_SWAP 98
element_close 30891
element_mulvecrow 231
eltabstorel 20090
eltabstorel_lift 20125
eltdown 0
eltreltoabs 21490
fail 49
findmin 364
idV_simplify 8386
initmat 28
mattocomplex 14
mknfabs 911
mkupdown 910
modulereltoabs 1435
nf_all_roots 14
nf_nfzk 1155
nf_rnfeq 1225
nf_rnfeqsimple 21
nfbezout 59066
nfcleanmod 15981
nfdetint 14
nfeltup 259
nfhnf 6545
nfhnf0 6559
nfhnfmod 1876
nfreduce 7
nfsnf 0
nfsnf0 21
nftau 196
nftocomplex 1022
prodidnorm 105
rel_T2 14
rnfV_to_nfM 476
rnf_build_nfabs 22491
rnf_zkabs 987
rnfcomplete 1533
rnfeltabstorel 45115
rnfeltdown 1638
rnfeltdown0 1883
rnfeltreltoabs 41951
rnfeltup 5320
rnfeltup0 5586
rnfequation 112
rnfequation0 1477
rnfequation2 1239
rnfequationall 1533
rnfideal0 154
rnfidealabstorel 455
rnfidealdown 217
rnfidealfactor 35
rnfidealhnf 1316
rnfidealmul 49
rnfidealnormabs 203
rnfidealnormrel 196
rnfidealprimedec 35
rnfidealprimedec_1 35
rnfidealreltoabs 0
rnfidealreltoabs0 238
rnfidealreltoabs_i 490
rnfidealtwoelement 252
rnfidealup 217
rnfidealup0 1043
rnfinit 441
rnfinit0 1155
rnflllgram 14
rnfpolred 7
rnfprincipaltohnf 770
rnfscal 357
rowcomb 154
zero_nfbezout 54894

Generated by: LCOV version 1.11