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 - modules - galois.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17097-9391e68) Lines: 1458 1517 96.1 %
Date: 2014-11-21 Functions: 63 65 96.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1271 1481 85.8 %

Function Name Sort by function name Hit count Sort by hit count
Monomial 16694156
_aff 2180
_cr 1065
_gr 57300
_typ 575
alloc_pobj 22535
allocgroup 16940
bin 7792690
check_isin 8470
closure10 435
closure11 65
closure8 530
closure9 320
cmp_re 88463412
data10 2705
data11 130
data8 3910
data9 1725
dbg_rac 0
delete_roots 120
do_par 133075
fixprec 78180
galmodp 1430
galoisbig 1430
galoisimpeven10 80
galoisimpeven8 240
galoisimpeven9 120
galoisimpodd10 285
galoisimpodd8 240
galoisimpodd9 110
galoismodulo10 455
galoismodulo11 85
galoismodulo8 550
galoismodulo9 340
galoisprim10 70
galoisprim8 50
galoisprim9 90
galopen 14065
get_ro 846327
get_ro_perm 807567
getpreci 8470
gpoly 402663
gpolynomial 443664
init_isin 8470
initgroup 8470
isin_G_H 8470
lirecoset 8470
lireresolv 5595
moreprec 38760
new_pol 1082
partitions_galois 1345
permmul 8510
polgaloisnamesbig 1430
preci 118001
printperm 0
raye 160940
rayergroup 15125
rayergroup11 770
read_obj 14065
sortroots 120
sufprec 768495
sufprec_r 1466480
tschirn 955
zaux 1606
zaux1 3212

Generated by: LCOV version 1.9