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.18.1 lcov report (development 30106-3f17b77578) Lines: 1098 1597 68.8 %
Date: 2025-03-31 09:19:50 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
nf_rnfeqsimple 378
rnfidealabstorel 455
rnfV_to_nfM 483
nfeltup 497
rnfidealreltoabs_i 497
nfdetint 742
rnfprincipaltohnf 770
nftocomplex 1022
rnfinit 1281
rnfidealhnf 1330
mkupdown 2345
mknfabs 2401
rnf_zkabs 2604
nfhnfmod 2645
rnfinit0 2800
nfhnf 2832
nfhnf0 2846
nf_nfzk 2856
nf_rnfeq 2863
modulereltoabs 3066
rnfeltdown 3164
rnfeltdown0 3633
rnfdisc_get_T 4578
rnfdisc_get_T_i 4578
idV_simplify 5442
rnfequation2 10493
rnfidealprimedec 19728
rnfidealprimedec_1 19728
element_close 24036
nfcleanmod 24392
rnfeltup 24404
eltabstorel 31549
rnfequation 34111
rnfcomplete 35872
eltabstorel_lift 36736
zero_nfbezout 38779
rnfeltup0 39624
nfbezout 43119
rnfequation0 48020
rnfequationall 48398
colcomb 64122
rnfeltabstorel 72597
colcomb1 80895
eltreltoabs 111369
rnf_build_nfabs 141776
rnfeltreltoabs 196836

Generated by: LCOV version 1.16