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-04-25 08:08:21 Functions: 69 71 97.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F4 7350
Monomial 36926499
_aff 4886
_cr 2345
_gr 124628
_typ 1246
alloc_pobj 49882
allocgroup 37450
bin 17076913
check_isin 18725
closure10 945
closure11 140
closure8 1141
closure9 721
cmp_re 195190015
data10 5887
data11 301
data8 8582
data9 3955
dbg_rac 0
delete_roots 200
do_par 290465
fixprec 237133
galmodp 3115
galois_res 12089
galoisbig 3115
galoisimpeven10 175
galoisimpeven8 525
galoisimpeven9 273
galoisimpodd10 623
galoisimpodd8 511
galoisimpodd9 245
galoismodulo10 987
galoismodulo11 182
galoismodulo8 1183
galoismodulo9 763
galoisprim10 147
galoisprim8 105
galoisprim9 203
galopen 31157
get_ro 1918764
get_ro_perm 1801254
getpreci 18725
gpoly 948938
gpolynomial 969826
init_isin 18725
initgroup 18725
isin_G_H 18725
lirecoset 18725
lireresolv 12432
moreprec 117510
new_pol 2774
partitions_galois 2933
permmul 18676
polgalois 15204
polgaloisnames 12089
polgaloisnamesbig 3115
preci 328371
printperm 0
raye 347137
rayergroup 32949
rayergroup11 1610
read_obj 31157
roots_to_ZX 18566
sortroots 200
sufprec 1682916
sufprec_r 3198603
transroot 90642
tschirn 2555
zaux 3444
zaux1 6888

Generated by: LCOV version 1.14