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.8.0 lcov report (development 18953-2660f45) Lines: 1023 1111 92.1 %
Date: 2016-05-29 Functions: 72 76 94.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 551 731 75.4 %

Function Name Sort by function name Hit count Sort by hit count
RED 364
RgV_find_denom 0
check_0 84
check_and_build_nfabs 21399
colcomb 49266
colcomb1 59612
do_SWAP 98
element_close 15309
element_mulvecrow 231
eltabstorel 16772
eltabstorel_lift 16821
eltdown 0
eltreltoabs 19047
fail 49
findmin 364
idV_simplify 3129
initmat 28
mattocomplex 14
mknfabs 504
mkupdown 504
modulereltoabs 945
nf_all_roots 14
nf_nfzk 679
nf_rnfeq 728
nf_rnfeqsimple 14
nfbezout 28707
nfcleanmod 8071
nfdetint 14
nfeltup 259
nfhnf 2352
nfhnf0 2366
nfhnfmod 812
nfreduce 7
nfsnf 0
nfsnf0 21
nftau 196
nftocomplex 1022
prodid 763
prodidnorm 105
rel_T2 14
rnfV_to_nfM 462
rnf_basM 21
rnfcomplete 1057
rnfeltabstorel 44576
rnfeltdown 1512
rnfeltdown0 1757
rnfeltreltoabs 42938
rnfeltup 4354
rnfeltup0 4599
rnfequation 91
rnfequation0 959
rnfequation2 742
rnfequationall 1008
rnfideal0 154
rnfidealabstorel 448
rnfidealdown 217
rnfidealhnf 1281
rnfidealmul 49
rnfidealnormabs 203
rnfidealnormrel 196
rnfidealprimedec 14
rnfidealprimedec_1 14
rnfidealreltoabs 0
rnfidealreltoabs0 203
rnfidealreltoabs_i 455
rnfidealtwoelement 252
rnfidealup 217
rnfidealup0 1001
rnfinit 322
rnfinit0 679
rnflllgram 14
rnfpolred 7
rnfprincipaltohnf 756
rnfscal 357
rowcomb 154
zero_nfbezout 25845

Generated by: LCOV version 1.9