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 20459-9710128) Lines: 1030 1113 92.5 %
Date: 2017-03-30 05:32:39 Functions: 72 76 94.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RED 312
RgV_find_denom 0
check_0 72
colcomb 40836
colcomb1 49260
do_SWAP 84
element_close 12492
element_mulvecrow 198
eltabstorel 14418
eltabstorel_lift 14460
eltdown 0
eltreltoabs 16872
fail 42
findmin 312
idV_simplify 2628
initmat 24
mattocomplex 12
mknfabs 456
mkupdown 456
modulereltoabs 858
nf_all_roots 12
nf_nfzk 618
nf_rnfeq 678
nf_rnfeqsimple 12
nfbezout 23730
nfcleanmod 6456
nfdetint 12
nfeltup 222
nfhnf 1992
nfhnf0 2004
nfhnfmod 666
nfreduce 6
nfsnf 0
nfsnf0 18
nftau 168
nftocomplex 876
prodidnorm 90
rel_T2 12
rnfV_to_nfM 408
rnf_build_nfabs 18558
rnf_zkabs 474
rnfcomplete 996
rnfeltabstorel 38268
rnfeltdown 1296
rnfeltdown0 1506
rnfeltreltoabs 36942
rnfeltup 3348
rnfeltup0 3576
rnfequation 90
rnfequation0 888
rnfequation2 690
rnfequationall 930
rnfideal0 132
rnfidealabstorel 390
rnfidealdown 186
rnfidealfactor 30
rnfidealhnf 1128
rnfidealmul 42
rnfidealnormabs 174
rnfidealnormrel 168
rnfidealprimedec 30
rnfidealprimedec_1 30
rnfidealreltoabs 0
rnfidealreltoabs0 204
rnfidealreltoabs_i 420
rnfidealtwoelement 216
rnfidealup 186
rnfidealup0 852
rnfinit 282
rnfinit0 618
rnflllgram 12
rnfpolred 6
rnfprincipaltohnf 660
rnfscal 306
rowcomb 132
zero_nfbezout 21426

Generated by: LCOV version 1.11