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 16741-1378b1c) Lines: 1457 1516 96.1 %
Date: 2014-08-17 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 17663572
_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 94293272
data10 2705
data11 130
data8 3770
data9 1725
dbg_rac 0
delete_roots 120
do_par 132405
fixprec 76758
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 859385
get_ro_perm 821317
getpreci 8330
gpoly 402523
gpolynomial 456862
init_isin 8330
initgroup 8330
isin_G_H 8330
lirecoset 8330
lireresolv 5465
moreprec 38068
new_pol 1042
partitions_galois 1335
permmul 8430
polgaloisnamesbig 1420
preci 112589
printperm 0
raye 159540
rayergroup 15005
rayergroup11 770
read_obj 13795
sortroots 120
sufprec 783053
sufprec_r 1495598
tschirn 915
zaux 1606
zaux1 3212

Generated by: LCOV version 1.9