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 30604-e5d817ee12) Lines: 1915 2300 83.3 %
Date: 2026-01-09 09:21:43 Functions: 121 153 79.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_newtonsum 17907
Flv_sympol_eval 11391
FlxV_Flx_gcd 0
FlxV_minpolymod 0
Flx_FlxV_minpolymod 0
FpXV_ffisom 91
Qevproj_RgX 4186
Vmatrix 5854
a4galoisgen 98
aut_to_groupelts 1246
automorphismlift 31944
br_get 0
brl_add 0
cc_char_det 56
cc_chartable 546
cc_id 36939
checkgal 31087
checkgaloischar 1491
checkgroup 4270
checkgroupelts 4634
chiFT 861
chival 3920
chk_perm 7434
conjclasses_count 308
conjcyclo 980
cyclic_pc 24276
embed_disc 135914
embed_roots 12124
f36galoisgen 14
f36releveauto2 910
f36releveauto4 35
factperm 0
findp 0
findpsi 72
fixedfieldfactmod 5539
fixedfieldfactor 91
fixedfieldinclusion 1057
fixedfieldorbits 11314
fixedfieldsurmer 11314
fixedfieldsympol 11314
freetest 5616
frobeniusliftall 1981
galois_find_totally_split 7
galois_group 3360
galois_test_perm 117600
galoisanalysis 97035
galoisborne 31376
galoischar_aut_charpoly 12355
galoischar_charpoly 1491
galoischar_dim 1547
galoischardet 56
galoischarpoly 1435
galoischartable 553
galoisconj 70467
galoisconj0 63
galoisconj1 35993
galoisconj4 0
galoisconj4_main 97171
galoisconj_monic 70466
galoisconjclasses 308
galoiscosets 91
galoisdolift 30024
galoisdoliftn 1332
galoisexport 28
galoisfindfrobenius 29829
galoisfindgroups 98
galoisfixedfield 5775
galoisfrobeniuslift 2198
galoisfrobeniuslift_nilp 27736
galoisfrobeniustest 60632
galoisgen 30018
galoisgenfixedfield 5539
galoisgenfixedfield0 5539
galoisgenlift 5518
galoisgenlift_nilp 0
galoisgenliftauto 6743
galoisidentify 504
galoisinit 51376
galoisinitfromaut 1253
galoisisabelian 224
galoisisnormal 56
galoismakepsi 1694
galoisperm_free 0
galoisperm_init 0
galoispermtopol 17976
galoispermtopol_i 17976
galoissplittinginit 1239
galoissubfields 84
galoissubgroups 3213
galoisvecpermtopol 9086
genorbit 0
get_image 6743
get_pow 0
getfr 0
gg_get_std 34206
group_is_elt 8351
groupelts_to_group_or_elts 826
improves 164429
init_group 97030
initgaloisborne 84711
initlift 30025
inittest 5616
inittestlift 1736
intheadlong 1362777
is2sparse 11011
is_group 13279
lincomb 319426
listznstarelts 1743
makeLden 29920
matheadlong 5854
matrixnorm 511859
mkliftpow 91
monomorphismratlift 31944
monoratlift 64071
muldiv 0
nilp_froblift 0
notgalois 67022
numberofconjugates 35994
padicisint 95382
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 50093
polheadlong 38786
poltopermtest 65849
psi_order 29810
s4galoisgen 77
s4makelift 1458
s4releveauto 513
s4test 239307
stpow 14970
sympol_aut_evalmod 5539
sympol_eval 11314
sympol_eval_newtonsum 11391
sympol_is1to1_lg 11893
testpermutation 8957
vec_groupelts_to_group_or_elts 14
vecheadlong 58927
vecsmall_increase 0
vectopol 51689
vecvecsmall_increase 0
wpow 6743

Generated by: LCOV version 1.16