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 to exceed 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.16.2 lcov report (development 29419-8afb0ed749) Lines: 1098 1597 68.8 %
Date: 2024-07-02 09:03:41 Functions: 76 89 85.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
K6_invar 0
K6_pol 0
condliftA4 0
condliftA5 0
condliftS4 0
condliftpA4 0
condliftpA5 0
condliftpS4 0
decind 0
decmat 0
eltdown 0
nfsnf 0
rnfidealreltoabs 0
nfreduce 7
rnfpolred 7
RgV_find_denom 14
mattocomplex 14
nf_all_roots 14
rel_T2 14
rnflllgram 14
initmat 28
rnfidealfactor 35
fail 49
nfsnf0 49
rnfidealmul 56
check_0 84
do_SWAP 98
prodidnorm 105
rnfpseudobasis 126
rnfideal0 154
nftau 196
rnfidealnormrel 196
rowcomb 196
rnfidealnormabs 203
rnfidealdown 217
rnfidealup 224
rnfidealreltoabs0 238
rnfidealup0 245
rnfidealtwoelement 259
element_mulvecrow 315
rnfscal 357
RED 364
findmin 364
nfdetint 364
nf_rnfeqsimple 378
rnfidealabstorel 455
rnfV_to_nfM 483
nfeltup 497
rnfidealreltoabs_i 497
rnfprincipaltohnf 770
rnfinit 812
nftocomplex 1022
rnfidealhnf 1330
mknfabs 1638
mkupdown 1638
rnf_zkabs 1897
rnfinit0 2100
nf_nfzk 2149
nf_rnfeq 2163
modulereltoabs 2359
rnfeltdown 2597
rnfeltdown0 3066
nfhnfmod 3184
rnfdisc_get_T 3878
rnfdisc_get_T_i 3878
nfhnf 7293
nfhnf0 7307
rnfequation2 9765
idV_simplify 10442
rnfeltup 13744
rnfidealprimedec 18836
rnfidealprimedec_1 18836
eltabstorel 26131
nfcleanmod 27094
rnfeltup0 28359
eltabstorel_lift 29274
rnfequation 34111
rnfcomplete 34158
element_close 38653
rnfequation0 47292
rnfequationall 47670
rnfeltabstorel 56553
zero_nfbezout 64970
nfbezout 70479
eltreltoabs 89010
rnf_build_nfabs 107540
colcomb 111954
colcomb1 134311
rnfeltreltoabs 138182

Generated by: LCOV version 1.16