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-bordeaux1.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 18579-f9e35ad) Lines: 906 961 94.3 %
Date: 2016-02-05 Functions: 63 65 96.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 488 628 77.7 %

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 20629
colcomb 48286
colcomb1 58709
do_SWAP 98
element_close 15211
element_mulvecrow 231
eltabstorel 16555
eltabstorel_lift 16604
eltreltoabs 22071
fail 49
findmin 364
idV_simplify 2961
initmat 28
mattocomplex 14
modulereltoabs 1806
nf_all_roots 14
nf_nfzk 679
nf_rnfeq 1204
nf_rnfeqsimple 14
nfbezout 28119
nfcleanmod 7973
nfdetint 14
nfeltup 4585
nfhnf 2226
nfhnf0 2240
nfhnfmod 770
nfreduce 7
nfsnf 0
nfsnf0 21
nftau 196
nftocomplex 1022
prodid 756
prodidnorm 98
rel_T2 14
rnfV_to_nfM 462
rnf_basM 21
rnfeltabstorel 44499
rnfeltdown 1757
rnfeltreltoabs 42938
rnfeltup 4585
rnfequation 70
rnfequation0 1414
rnfequation2 1218
rnfequationall 1463
rnfideal0 112
rnfidealabstorel 343
rnfidealdown 210
rnfidealhnf 1302
rnfidealmul 49
rnfidealnormabs 203
rnfidealnormrel 196
rnfidealreltoabs 455
rnfidealtwoelement 252
rnfidealup 987
rnfinit 679
rnflllgram 14
rnfnfabs 616
rnfpolred 7
rnfprincipaltohnf 756
rnfscal 357
rowcomb 154
zero_nfbezout 25460

Generated by: LCOV version 1.9