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 30735-65f72320ad) Lines: 1916 2300 83.3 %
Date: 2026-03-12 09:23:43 Functions: 121 153 79.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FlxV_Flx_gcd 0
FlxV_minpolymod 0
Flx_FlxV_minpolymod 0
br_get 0
brl_add 0
factperm 0
findp 0
galoisconj4 0
galoisgenlift_nilp 0
galoisperm_free 0
galoisperm_init 0
genorbit 0
get_pow 0
getfr 0
muldiv 0
nilp_froblift 0
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
vecsmall_increase 0
vecvecsmall_increase 0
galois_find_totally_split 7
f36galoisgen 14
vec_groupelts_to_group_or_elts 14
galoisexport 28
f36releveauto4 35
cc_char_det 56
galoischardet 56
galoisisnormal 56
galoisconj0 63
findpsi 72
s4galoisgen 77
FpXV_ffisom 91
fixedfieldfactor 91
galoiscosets 91
mkliftpow 91
a4galoisgen 98
galoisfindgroups 98
galoissubfields 112
galoisisabelian 224
conjclasses_count 308
galoisconjclasses 308
galoisidentify 504
s4releveauto 513
cc_chartable 546
galoischartable 553
groupelts_to_group_or_elts 826
chiFT 861
f36releveauto2 910
conjcyclo 1029
fixedfieldinclusion 1057
galoissplittinginit 1239
aut_to_groupelts 1246
galoisinitfromaut 1253
galoisdoliftn 1332
galoischarpoly 1435
s4makelift 1458
checkgaloischar 1491
galoischar_charpoly 1491
galoischar_dim 1547
galoismakepsi 1694
inittestlift 1736
listznstarelts 1743
frobeniusliftall 1981
galoisfrobeniuslift 2226
galoissubgroups 3241
galois_group 3388
chival 3920
Qevproj_RgX 4186
checkgroup 4298
checkgroupelts 4634
galoisgenlift 5518
fixedfieldfactmod 5539
galoisgenfixedfield 5539
galoisgenfixedfield0 5539
sympol_aut_evalmod 5539
freetest 5616
inittest 5616
Vmatrix 5854
matheadlong 5854
galoisfixedfield 5887
galoisgenliftauto 6743
get_image 6743
wpow 6743
chk_perm 7546
group_is_elt 8379
testpermutation 8957
galoisvecpermtopol 9086
is2sparse 11011
fixedfieldorbits 11426
fixedfieldsurmer 11426
fixedfieldsympol 11426
sympol_eval 11426
Flv_sympol_eval 11503
sympol_eval_newtonsum 11503
sympol_is1to1_lg 12005
embed_roots 12117
galoischar_aut_charpoly 12355
is_group 13419
stpow 14970
galoispermtopol 17976
galoispermtopol_i 17976
Flm_newtonsum 18019
cyclic_pc 24304
galoisfrobeniuslift_nilp 27736
psi_order 29843
galoisfindfrobenius 29857
makeLden 29948
galoisgen 30046
galoisdolift 30053
initlift 30053
checkgal 31227
galoisborne 31404
automorphismlift 31973
monomorphismratlift 31973
gg_get_std 34234
galoisconj1 35994
numberofconjugates 35994
cc_id 36939
polheadlong 38786
permtopol 50121
galoisinit 51383
vectopol 51717
vecheadlong 58926
galoisfrobeniustest 60688
monoratlift 64183
poltopermtest 65905
notgalois 67022
galoisconj_monic 70514
galoisconj 70515
initgaloisborne 84733
padicisint 95382
init_group 97060
galoisanalysis 97063
galoisconj4_main 97230
galois_test_perm 117600
embed_disc 135914
improves 164531
s4test 239307
lincomb 319426
matrixnorm 511961
intheadlong 1362771

Generated by: LCOV version 1.16