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 30640-c2c58e18c5) Lines: 1915 2300 83.3 %
Date: 2026-01-27 08:51:18 Functions: 121 153 79.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_newtonsum 16283
Flv_sympol_eval 10434
FlxV_Flx_gcd 0
FlxV_minpolymod 0
Flx_FlxV_minpolymod 0
FpXV_ffisom 91
Qevproj_RgX 4186
Vmatrix 5035
a4galoisgen 98
aut_to_groupelts 1234
automorphismlift 24400
br_get 0
brl_add 0
cc_char_det 56
cc_chartable 546
cc_id 36939
checkgal 29707
checkgaloischar 1491
checkgroup 4204
checkgroupelts 4634
chiFT 861
chival 3920
chk_perm 7296
conjclasses_count 308
conjcyclo 728
cyclic_pc 18084
embed_disc 104174
embed_roots 11466
f36galoisgen 14
f36releveauto2 910
f36releveauto4 35
factperm 0
findp 0
findpsi 72
fixedfieldfactmod 4720
fixedfieldfactor 91
fixedfieldinclusion 1057
fixedfieldorbits 10357
fixedfieldsurmer 10357
fixedfieldsympol 10357
freetest 4797
frobeniusliftall 1825
galois_find_totally_split 7
galois_group 3294
galois_test_perm 117246
galoisanalysis 54858
galoisborne 24351
galoischar_aut_charpoly 12355
galoischar_charpoly 1491
galoischar_dim 1547
galoischardet 56
galoischarpoly 1435
galoischartable 553
galoisconj 54014
galoisconj0 63
galoisconj1 25940
galoisconj4 0
galoisconj4_main 54760
galoisconj_monic 54014
galoisconjclasses 308
galoiscosets 91
galoisdolift 23014
galoisdoliftn 798
galoisexport 28
galoisfindfrobenius 22818
galoisfindgroups 68
galoisfixedfield 5637
galoisfrobeniuslift 1790
galoisfrobeniuslift_nilp 21132
galoisfrobeniustest 46051
galoisgen 23007
galoisgenfixedfield 4720
galoisgenfixedfield0 4720
galoisgenlift 4699
galoisgenlift_nilp 0
galoisgenliftauto 5855
galoisidentify 504
galoisinit 19967
galoisinitfromaut 1241
galoisisabelian 182
galoisisnormal 56
galoismakepsi 1538
galoisperm_free 0
galoisperm_init 0
galoispermtopol 16800
galoispermtopol_i 16800
galoissplittinginit 1227
galoissubfields 84
galoissubgroups 3189
galoisvecpermtopol 8390
genorbit 0
get_image 5855
get_pow 0
getfr 0
gg_get_std 26469
group_is_elt 8327
groupelts_to_group_or_elts 826
improves 118608
init_group 54859
initgaloisborne 47001
initlift 23013
inittest 4797
inittestlift 1610
intheadlong 1321137
is2sparse 1933
is_group 13075
lincomb 319426
listznstarelts 1587
makeLden 22909
matheadlong 5035
matrixnorm 436342
mkliftpow 91
monomorphismratlift 24400
monoratlift 52599
muldiv 0
nilp_froblift 0
notgalois 31850
numberofconjugates 25941
padicisint 92652
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 41745
polheadlong 38162
poltopermtest 51113
psi_order 22804
s4galoisgen 77
s4makelift 1458
s4releveauto 513
s4test 239307
stpow 13194
sympol_aut_evalmod 4720
sympol_eval 10357
sympol_eval_newtonsum 10434
sympol_is1to1_lg 10930
testpermutation 7535
vec_groupelts_to_group_or_elts 14
vecheadlong 53983
vecsmall_increase 0
vectopol 43340
vecvecsmall_increase 0
wpow 5855

Generated by: LCOV version 1.16