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 - basemath - galconj.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30571-c0dfe82732) Lines: 1915 2300 83.3 %
Date: 2025-12-05 09:21:30 Functions: 121 153 79.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_newtonsum 17974
Flv_sympol_eval 11433
FlxV_Flx_gcd 0
FlxV_minpolymod 0
Flx_FlxV_minpolymod 0
FpXV_ffisom 91
Qevproj_RgX 4186
Vmatrix 5882
a4galoisgen 98
aut_to_groupelts 1246
automorphismlift 31973
br_get 0
brl_add 0
cc_char_det 56
cc_chartable 546
cc_id 36939
checkgal 31101
checkgaloischar 1491
checkgroup 4270
checkgroupelts 4634
chiFT 861
chival 3920
chk_perm 7448
conjclasses_count 308
conjcyclo 980
cyclic_pc 24276
embed_disc 136238
embed_roots 12142
f36galoisgen 14
f36releveauto2 910
f36releveauto4 35
factperm 0
findp 0
findpsi 72
fixedfieldfactmod 5567
fixedfieldfactor 91
fixedfieldinclusion 1057
fixedfieldorbits 11356
fixedfieldsurmer 11356
fixedfieldsympol 11356
freetest 5644
frobeniusliftall 1995
galois_find_totally_split 7
galois_group 3360
galois_test_perm 117628
galoisanalysis 97067
galoisborne 31404
galoischar_aut_charpoly 12355
galoischar_charpoly 1491
galoischar_dim 1547
galoischardet 56
galoischarpoly 1435
galoischartable 553
galoisconj 70495
galoisconj0 63
galoisconj1 35993
galoisconj4 0
galoisconj4_main 97197
galoisconj_monic 70495
galoisconjclasses 308
galoiscosets 91
galoisdolift 30053
galoisdoliftn 1332
galoisexport 28
galoisfindfrobenius 29857
galoisfindgroups 98
galoisfixedfield 5789
galoisfrobeniuslift 2212
galoisfrobeniuslift_nilp 27750
galoisfrobeniustest 60692
galoisgen 30046
galoisgenfixedfield 5567
galoisgenfixedfield0 5567
galoisgenlift 5546
galoisgenlift_nilp 0
galoisgenliftauto 6771
galoisidentify 504
galoisinit 51390
galoisinitfromaut 1253
galoisisabelian 224
galoisisnormal 56
galoismakepsi 1708
galoisperm_free 0
galoisperm_init 0
galoispermtopol 17976
galoispermtopol_i 17976
galoissplittinginit 1239
galoissubfields 84
galoissubgroups 3213
galoisvecpermtopol 9100
genorbit 0
get_image 6771
get_pow 0
getfr 0
gg_get_std 34262
group_is_elt 8351
groupelts_to_group_or_elts 826
improves 164561
init_group 97066
initgaloisborne 84870
initlift 30053
inittest 5644
inittestlift 1750
intheadlong 1363561
is2sparse 11011
is_group 13279
lincomb 319426
listznstarelts 1757
makeLden 29948
matheadlong 5882
matrixnorm 511892
mkliftpow 91
monomorphismratlift 31973
monoratlift 64171
muldiv 0
nilp_froblift 0
notgalois 67022
numberofconjugates 35993
padicisint 95494
pc_bracket 0
pc_evalcache 0
pc_exp 0
pc_inv 0
pc_mul 0
pc_normalize 0
pc_to_perm 0
pcgrp_get_br 0
pcgrp_get_ord 0
pcgrp_get_pow 0
pcgrp_insert 0
pcgrp_lift 0
permprodeval 0
permtoaut 0
permtopol 50121
polheadlong 38842
poltopermtest 65922
psi_order 29842
s4galoisgen 77
s4makelift 1458
s4releveauto 513
s4test 239307
stpow 15026
sympol_aut_evalmod 5567
sympol_eval 11356
sympol_eval_newtonsum 11433
sympol_is1to1_lg 11936
testpermutation 8985
vec_groupelts_to_group_or_elts 14
vecheadlong 59067
vecsmall_increase 0
vectopol 51717
vecvecsmall_increase 0
wpow 6771

Generated by: LCOV version 1.16