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 20296-0a10b35) Lines: 1027 1109 92.6 %
Date: 2017-02-26 05:50:47 Functions: 72 76 94.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RED 364
RgV_find_denom 0
check_0 84
colcomb 47698
colcomb1 57582
do_SWAP 98
element_close 14609
element_mulvecrow 231
eltabstorel 16821
eltabstorel_lift 16870
eltdown 0
eltreltoabs 19684
fail 49
findmin 364
idV_simplify 3066
initmat 28
mattocomplex 14
mknfabs 533
mkupdown 532
modulereltoabs 1001
nf_all_roots 14
nf_nfzk 721
nf_rnfeq 770
nf_rnfeqsimple 14
nfbezout 27713
nfcleanmod 7539
nfdetint 14
nfeltup 259
nfhnf 2324
nfhnf0 2338
nfhnfmod 777
nfreduce 7
nfsnf 0
nfsnf0 21
nftau 196
nftocomplex 1022
prodidnorm 105
rel_T2 14
rnfV_to_nfM 476
rnf_build_nfabs 21651
rnf_zkabs 553
rnfcomplete 1162
rnfeltabstorel 44646
rnfeltdown 1512
rnfeltdown0 1757
rnfeltreltoabs 43099
rnfeltup 3906
rnfeltup0 4172
rnfequation 105
rnfequation0 1015
rnfequation2 784
rnfequationall 1064
rnfideal0 154
rnfidealabstorel 455
rnfidealdown 217
rnfidealfactor 35
rnfidealhnf 1316
rnfidealmul 49
rnfidealnormabs 203
rnfidealnormrel 196
rnfidealprimedec 35
rnfidealprimedec_1 35
rnfidealreltoabs 0
rnfidealreltoabs0 238
rnfidealreltoabs_i 490
rnfidealtwoelement 252
rnfidealup 217
rnfidealup0 994
rnfinit 329
rnfinit0 721
rnflllgram 14
rnfpolred 7
rnfprincipaltohnf 770
rnfscal 357
rowcomb 154
zero_nfbezout 24969

Generated by: LCOV version 1.11