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 16962-5a32637) Lines: 1457 1516 96.1 %
Date: 2014-10-29 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 24728928
_aff 2996
_cr 1477
_gr 79548
_typ 805
alloc_pobj 30975
allocgroup 23324
bin 10887506
check_isin 11662
closure10 609
closure11 91
closure8 728
closure9 448
cmp_re 132010412
data10 3787
data11 182
data8 5278
data9 2415
dbg_rac 0
delete_roots 166
do_par 185367
fixprec 107442
galmodp 1988
galoisbig 1988
galoisimpeven10 112
galoisimpeven8 336
galoisimpeven9 168
galoisimpodd10 399
galoisimpodd8 322
galoisimpodd9 154
galoismodulo10 637
galoismodulo11 119
galoismodulo8 756
galoismodulo9 476
galoisprim10 98
galoisprim8 70
galoisprim9 126
galopen 19313
get_ro 1203119
get_ro_perm 1149843
getpreci 11662
gpoly 563517
gpolynomial 639602
init_isin 11662
initgroup 11662
isin_G_H 11662
lirecoset 11662
lireresolv 7651
moreprec 53276
new_pol 1456
partitions_galois 1869
permmul 11802
polgaloisnamesbig 1988
preci 157595
printperm 0
raye 223356
rayergroup 21007
rayergroup11 1078
read_obj 19313
sortroots 166
sufprec 1096255
sufprec_r 2093816
tschirn 1281
zaux 2248
zaux1 4496

Generated by: LCOV version 1.9