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.0 lcov report (development 29841-6055bbdca6) Lines: 1916 2301 83.3 %
Date: 2025-01-02 09:12:31 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 73
s4galoisgen 77
galoissubfields 84
FpXV_ffisom 91
fixedfieldfactor 91
galoiscosets 91
mkliftpow 91
a4galoisgen 98
galoisfindgroups 98
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 980
fixedfieldinclusion 1057
galoissplittinginit 1239
aut_to_groupelts 1246
galoisinitfromaut 1253
galoisdoliftn 1347
galoischarpoly 1435
s4makelift 1458
checkgaloischar 1491
galoischar_charpoly 1491
galoischar_dim 1547
galoismakepsi 1729
inittestlift 1771
listznstarelts 1778
frobeniusliftall 2016
galoisfrobeniuslift 2233
galoissubgroups 3213
galois_group 3346
chival 3920
Qevproj_RgX 4186
checkgroup 4270
checkgroupelts 4634
galoisgenlift 5351
fixedfieldfactmod 5372
galoisgenfixedfield 5372
galoisgenfixedfield0 5372
sympol_aut_evalmod 5372
freetest 5449
inittest 5449
Vmatrix 5687
matheadlong 5687
galoisfixedfield 5810
galoisgenliftauto 6576
get_image 6576
wpow 6576
chk_perm 7469
group_is_elt 8351
testpermutation 8805
galoisvecpermtopol 8855
is2sparse 10976
fixedfieldorbits 11182
fixedfieldsurmer 11182
fixedfieldsympol 11182
sympol_eval 11182
Flv_sympol_eval 11259
sympol_eval_newtonsum 11259
embed_roots 11532
sympol_is1to1_lg 11757
galoischar_aut_charpoly 12355
is_group 13279
stpow 14636
Flm_newtonsum 17617
galoispermtopol 17927
galoispermtopol_i 17927
cyclic_pc 24248
galoisfrobeniuslift_nilp 27506
psi_order 29620
galoisfindfrobenius 29634
makeLden 29725
galoisgen 29823
galoisdolift 29826
initlift 29829
checkgal 31052
galoisborne 31181
automorphismlift 31765
monomorphismratlift 31765
gg_get_std 33844
galoisconj1 35945
numberofconjugates 35945
cc_id 36939
polheadlong 38926
permtopol 49849
galoisinit 51372
vectopol 51445
vecheadlong 58329
galoisfrobeniustest 60254
monoratlift 64071
poltopermtest 65665
notgalois 66958
galoisconj_monic 70181
galoisconj 70182
initgaloisborne 84026
padicisint 94906
galoisanalysis 96780
init_group 96782
galoisconj4_main 96885
galois_test_perm 117418
embed_disc 136360
improves 162860
s4test 240527
lincomb 321242
matrixnorm 422841
intheadlong 1360945

Generated by: LCOV version 1.16