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.16.2 lcov report (development 29115-f22e516b23) Lines: 1768 1838 96.2 %
Date: 2024-03-28 08:06:56 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 105
closure11 140
galoisprim10 147
galoisimpeven10 175
galoismodulo11 182
delete_roots 200
sortroots 200
galoisprim9 203
galoisimpodd9 245
galoisimpeven9 273
data11 301
galoisimpodd8 511
galoisimpeven8 525
galoisimpodd10 623
closure9 721
galoismodulo9 763
closure10 945
galoismodulo10 987
closure8 1141
galoismodulo8 1183
_typ 1246
rayergroup11 1610
_cr 2345
tschirn 2555
new_pol 2774
partitions_galois 2933
galmodp 3115
galoisbig 3115
polgaloisnamesbig 3115
zaux 3444
data9 3955
_aff 4886
data10 5887
zaux1 6888
F4 7350
data8 8582
galois_res 12089
polgaloisnames 12089
lireresolv 12432
polgalois 15204
roots_to_ZX 18567
permmul 18676
check_isin 18725
getpreci 18725
init_isin 18725
initgroup 18725
isin_G_H 18725
lirecoset 18725
galopen 31157
read_obj 31157
rayergroup 32949
allocgroup 37450
alloc_pobj 49882
transroot 90648
moreprec 117510
_gr 124628
fixprec 237133
do_par 290465
preci 328371
raye 347137
gpoly 948938
gpolynomial 969826
sufprec 1682916
get_ro_perm 1801254
get_ro 1918764
sufprec_r 3198603
bin 17076913
Monomial 36926499
cmp_re 195190015

Generated by: LCOV version 1.14