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.12.0 lcov report (development 23171-a5c0ed393) Lines: 1035 1118 92.6 %
Date: 2018-10-20 05:38:07 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
nfsnf0 21
initmat 28
nfdetint 35
rnfidealfactor 35
rnfidealprimedec 35
rnfidealprimedec_1 35
fail 49
nf_rnfeqsimple 56
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 1449
nf_nfzk 1470
nf_rnfeq 1547
rnfequation2 1561
modulereltoabs 1729
rnfequation0 1799
rnfequationall 1855
rnfcomplete 1953
nfhnfmod 1995
check_polrel 2275
rnfeltdown 2499
rnfeltdown0 2744
nfhnf 6517
nfhnf0 6531
idV_simplify 8477
nfcleanmod 16527
rnfeltup 17717
rnfeltup0 17983
eltabstorel 25039
eltabstorel_lift 25746
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