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 to exceed 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.12.0 lcov report (development 23171-a5c0ed393) Lines: 1636 1703 96.1 %
Date: 2018-10-20 05:38:07 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 164
sortroots 164
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 1043
galois_res 1078
polgaloisnames 1078
F4 1218
tschirn 1288
roots_to_ZX 1436
new_pol 1458
_cr 1491
partitions_galois 1883
galmodp 2002
galoisbig 2002
polgaloisnamesbig 2002
zaux 2156
data9 2415
_aff 3052
polgalois 3080
data10 3787
zaux1 4312
data8 5474
transroot 6125
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 21119
allocgroup 23716
alloc_pobj 31549
moreprec 54143
_gr 80220
fixprec 109212
preci 164267
do_par 186305
raye 224784
gpoly 563652
gpolynomial 641944
sufprec 1096884
get_ro_perm 1151453
get_ro 1205596
sufprec_r 2095104
bin 10909766
Monomial 24765056
cmp_re 132116813

Generated by: LCOV version 1.13