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 21331-964717c) Lines: 1640 1712 95.8 %
Date: 2017-11-17 06:20:57 Functions: 69 71 97.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
dbg_rac 0
printperm 0
galoisprim8 70
closure11 91
galoisprim10 98
galoisimpeven10 112
galoismodulo11 119
galoisprim9 126
galoisimpodd9 154
delete_roots 156
sortroots 156
galoisimpeven9 168
data11 182
galoisimpeven8 336
galoisimpodd8 336
galoisimpodd10 399
closure9 448
galoismodulo9 476
closure10 609
galoismodulo10 637
closure8 742
galoismodulo8 770
_typ 805
rayergroup11 1050
galois_res 1064
polgaloisnames 1064
F4 1134
tschirn 1309
roots_to_ZX 1400
new_pol 1479
_cr 1491
partitions_galois 1883
galmodp 2002
galoisbig 2002
polgaloisnamesbig 2002
zaux 2198
data9 2415
_aff 3052
polgalois 3066
data10 3787
zaux1 4396
data8 5474
transroot 6062
lireresolv 7833
check_isin 11858
getpreci 11858
init_isin 11858
initgroup 11858
isin_G_H 11858
lirecoset 11858
permmul 11914
galopen 19691
read_obj 19691
rayergroup 21014
allocgroup 23716
alloc_pobj 31549
moreprec 54028
_gr 80220
fixprec 109034
preci 164447
do_par 186305
raye 222838
gpoly 563655
gpolynomial 606908
sufprec 1061915
get_ro_perm 1116535
get_ro 1170563
sufprec_r 2025086
bin 10909766
Monomial 22441345
cmp_re 118150740

Generated by: LCOV version 1.11