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 16624-25b9976) Lines: 1457 1516 96.1 %
Date: 2014-06-24 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 17330613
_aff 2140
_cr 1055
_gr 56820
_typ 575
alloc_pobj 22125
allocgroup 16660
bin 7776790
check_isin 8330
closure10 435
closure11 65
closure8 520
closure9 320
cmp_re 92388246
data10 2705
data11 130
data8 3770
data9 1725
dbg_rac 0
delete_roots 120
do_par 132405
fixprec 76766
galmodp 1420
galoisbig 1420
galoisimpeven10 80
galoisimpeven8 240
galoisimpeven9 120
galoisimpodd10 285
galoisimpodd8 230
galoisimpodd9 110
galoismodulo10 455
galoismodulo11 85
galoismodulo8 540
galoismodulo9 340
galoisprim10 70
galoisprim8 50
galoisprim9 90
galopen 13795
get_ro 854245
get_ro_perm 816173
getpreci 8330
gpoly 402462
gpolynomial 451783
init_isin 8330
initgroup 8330
isin_G_H 8330
lirecoset 8330
lireresolv 5465
moreprec 38072
new_pol 1038
partitions_galois 1335
permmul 8430
polgaloisnamesbig 1420
preci 112571
printperm 0
raye 159428
rayergroup 14987
rayergroup11 768
read_obj 13795
sortroots 120
sufprec 777910
sufprec_r 1485321
tschirn 913
zaux 1596
zaux1 3192

Generated by: LCOV version 1.9