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) Coverage Total Hit
Test: PARI/GP v2.18.1 lcov report (development 31041-bd73e9fcdd) Lines: 83.6 % 2318 1937
Test Date: 2026-07-22 22:45:42 Functions: 79.1 % 153 121
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function 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
f36galoisgen 14
galois_find_totally_split 14
vec_groupelts_to_group_or_elts 21
f36releveauto4 35
galoisexport 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
conjclasses_count 315
galoisconjclasses 315
s4releveauto 513
cc_chartable 553
galoischartable 560
galoisisabelian 644
f36releveauto2 910
galoisidentify 924
chiFT 945
conjcyclo 1029
fixedfieldinclusion 1057
galoissplittinginit 1239
groupelts_to_group_or_elts 1239
aut_to_groupelts 1253
galoisdoliftn 1359
galoischarpoly 1435
s4makelift 1458
checkgaloischar 1491
galoischar_charpoly 1491
galoischar_dim 1547
galoismakepsi 1694
galoisinitfromaut 1706
inittestlift 1736
listznstarelts 1743
frobeniusliftall 1981
galoisfrobeniuslift 2205
galoissubgroups 3248
galois_group 3388
chival 4116
Qevproj_RgX 4585
checkgroupelts 4655
checkgroup 5110
galoisgenlift 5545
fixedfieldfactmod 5566
galoisgenfixedfield 5566
galoisgenfixedfield0 5566
sympol_aut_evalmod 5566
freetest 5643
inittest 5643
Vmatrix 5881
matheadlong 5881
galoisfixedfield 5887
galoisgenliftauto 6770
get_image 6770
wpow 6770
chk_perm 7546
testpermutation 9011
galoisvecpermtopol 9086
group_is_elt 9506
is2sparse 11011
fixedfieldorbits 11453
fixedfieldsurmer 11453
fixedfieldsympol 11453
sympol_eval 11453
Flv_sympol_eval 11530
sympol_eval_newtonsum 11530
sympol_is1to1_lg 12027
galoischar_aut_charpoly 12355
embed_roots 12409
is_group 14231
stpow 15024
galoispermtopol 17976
galoispermtopol_i 17976
Flm_newtonsum 18070
cyclic_pc 24304
galoisfrobeniuslift_nilp 27782
psi_order 29870
galoisfindfrobenius 29884
makeLden 29974
galoisgen 30073
galoisdolift 30079
initlift 30079
checkgal 31227
galoisborne 31438
automorphismlift 32027
monomorphismratlift 32027
gg_get_std 33587
numberofconjugates 35993
galoisconj1 36446
cc_id 37051
polheadlong 38786
permtopol 50148
galoisinit 51412
vectopol 51745
vecheadlong 59035
galoisfrobeniustest 60761
monoratlift 64330
poltopermtest 65977
notgalois 66993
galoisconj 70525
galoisconj_monic 70525
initgaloisborne 85449
padicisint 95382
galoisanalysis 97073
init_group 97073
galoisconj4_main 97255
galois_test_perm 117600
embed_disc 135915
improves 164564
s4test 239307
lincomb 319426
matrixnorm 512136
intheadlong 1363207

Generated by: LCOV version 2.0-1