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-bordeaux.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.10.0 lcov report (development 20459-9710128) Lines: 1640 1712 95.8 %
Date: 2017-04-29 05:33:44 Functions: 69 71 97.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F4 972
Monomial 21231078
_aff 2616
_cr 1278
_gr 68760
_typ 690
alloc_pobj 27042
allocgroup 20328
bin 9351228
check_isin 10164
closure10 522
closure11 78
closure8 636
closure9 384
cmp_re 113821896
data10 3246
data11 156
data8 4692
data9 2070
dbg_rac 0
delete_roots 132
do_par 159690
fixprec 93420
galmodp 1716
galois_res 912
galoisbig 1716
galoisimpeven10 96
galoisimpeven8 288
galoisimpeven9 144
galoisimpodd10 342
galoisimpodd8 288
galoisimpodd9 132
galoismodulo10 546
galoismodulo11 102
galoismodulo8 660
galoismodulo9 408
galoisprim10 84
galoisprim8 60
galoisprim9 108
galopen 16878
get_ro 1033542
get_ro_perm 987270
getpreci 10164
gpoly 483102
gpolynomial 550440
init_isin 10164
initgroup 10164
isin_G_H 10164
lirecoset 10164
lireresolv 6714
moreprec 46272
new_pol 1266
partitions_galois 1614
permmul 10212
polgalois 2628
polgaloisnames 912
polgaloisnamesbig 1716
preci 140898
printperm 0
raye 191004
rayergroup 18012
rayergroup11 900
read_obj 16878
roots_to_ZX 1194
sortroots 132
sufprec 940416
sufprec_r 1796226
transroot 5160
tschirn 1122
zaux 1884
zaux1 3768

Generated by: LCOV version 1.11