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 17238-ce76349) Lines: 1458 1517 96.1 %
Date: 2014-12-20 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 23438264
_aff 3052
_cr 1491
_gr 80220
_typ 805
alloc_pobj 31549
allocgroup 23716
bin 10909766
check_isin 11858
closure10 609
closure11 91
closure8 742
closure9 448
cmp_re 124259536
data10 3787
data11 182
data8 5474
data9 2415
dbg_rac 0
delete_roots 166
do_par 186305
fixprec 109432
galmodp 2002
galoisbig 2002
galoisimpeven10 112
galoisimpeven8 336
galoisimpeven9 168
galoisimpodd10 399
galoisimpodd8 336
galoisimpodd9 154
galoismodulo10 637
galoismodulo11 119
galoismodulo8 770
galoismodulo9 476
galoisprim10 98
galoisprim8 70
galoisprim9 126
galopen 19691
get_ro 1185845
get_ro_perm 1131601
getpreci 11858
gpoly 563713
gpolynomial 622132
init_isin 11858
initgroup 11858
isin_G_H 11858
lirecoset 11858
lireresolv 7833
moreprec 54244
new_pol 1512
partitions_galois 1883
permmul 11914
polgaloisnamesbig 2002
preci 165171
printperm 0
raye 225316
rayergroup 21175
rayergroup11 1078
read_obj 19691
sortroots 166
sufprec 1076881
sufprec_r 2055066
tschirn 1337
zaux 2248
zaux1 4496

Generated by: LCOV version 1.9