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.11.0 lcov report (development 22860-5579deb0b) Lines: 1035 1118 92.6 %
Date: 2018-07-18 05:36:42 Functions: 73 77 94.8 %
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
rel_T2 14
rnflllgram 14
nf_rnfeqsimple 21
nfsnf0 21
initmat 28
nfdetint 35
rnfidealfactor 35
rnfidealprimedec 35
rnfidealprimedec_1 35
fail 49
rnfidealmul 56
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
nfeltup 245
rnfidealtwoelement 259
rnfscal 357
RED 364
findmin 364
rnfidealabstorel 455
rnfV_to_nfM 483
rnfidealreltoabs_i 497
rnfinit 560
rnfprincipaltohnf 770
nftocomplex 1022
mkupdown 1190
mknfabs 1191
rnf_zkabs 1274
rnfidealup0 1295
rnfidealhnf 1330
rnfinit0 1442
nf_nfzk 1463
nf_rnfeq 1540
rnfequation2 1554
modulereltoabs 1729
rnfequation0 1792
rnfequationall 1848
rnfcomplete 1953
nfhnfmod 1995
check_polrel 2268
rnfeltdown 2499
rnfeltdown0 2744
nfhnf 6517
nfhnf0 6531
idV_simplify 8477
nfcleanmod 16527
rnfeltup 17717
rnfeltup0 17983
eltabstorel 25039
eltabstorel_lift 25732
element_close 31318
rnfeltabstorel 52927
zero_nfbezout 55426
nfbezout 59584
rnf_build_nfabs 70224
eltreltoabs 78435
colcomb 100576
colcomb1 117950
rnfeltreltoabs 130774

Generated by: LCOV version 1.13