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 - nflist.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29712-7c8a932571) Lines: 3111 3230 96.3 %
Date: 2024-11-15 09:08:45 Functions: 316 323 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
A4S4_fa 41594
A4clean3 707
A5file 273
A5vec 154
C32D4pol 25291
C3pol_f 861
C3vec 189
C3vec_F 224
C4qfbsolve 27630
C4vec 2253
C5bnf 56
C5cleanB 427
C5prim 1819
C6fill 8699
MgenF 462
P2Nfa 294
P2fa 7994
Pell2prfa 7224
RgVV_nb 34363
RgXV_polred 11413
S4_get_disc 23848
S4data 65789
S4makeid 40424
S4makeidclass 35021
Sextract 280
X2m 1883
X2p 6299
Y2m 4913
ZV_is_1 45738
ZV_iseven 110116
ZX_red_disc 105
ZX_red_disc2 749
_nfsubfields 31689
_nfsubfields1 28469
arch0 126
arch1 63
arch1g 63
arch2 63
arch2g 63
arch3 56
archA462 91
archD40 175
archD41 175
archD42 182
archS4621 98
archS4623 98
aut2 42237
authI 177330
bigdisc 27286
bnfY 20201
bnf_get_disc 12228
bnrcfC9 210
ceildiv 5704
ceilsqrt 189
ceilsqrtdiv 7146
ceilsqrtn 245
ceilsqrtndiv 84
checkS4data 65789
checkU 1091189
checkcondC3 357
checkcondCL 4090
checkcondDL 10437
checkcondell_i 6317
checkfield 427
checkfield_i 2814
cmp2 700
condrel 196
condrel_dummy 21
condrel_i 210
condrelresolvent 112
cored 1358
cubicimag 175
cubicreal 203
cubictypedec 11396
cyc_is_trivial 25291
cycfindaut 5894
cyclicgalois 2632
cyclicprimegen 1288
decp 126
divide 27138
divisorsabsdisc 735
divisorsdisc 392
divisorsdisc_i 1127
divispowerall 21
divissquare 21
divissquareall 49
doA462 20251
doA4S4 637
doC32C4 49
doC32C4_i 2961
eltlist2 23968
extractS3cond 77
fa_is_fundamental_pm 2450
floorsqrt 189
floorsqrtdiv 35979
floorsqrtn 3318
floorsqrtndiv 1617
fund_pm 3493
gal_get_order 63
gceilsqrtdiv 28
gceilsqrtn 1162
getarchD4 238
getpell 2849
getpol 952
gets2s3 91
gfloorsqrtdiv 38230
glco46M 637
group_add_elt 28
group_nTk 6111
grouptranslate 2310
gtoset_shallow 36138
ideallistsquare 6426
idlist 34363
is_fundamental_pm 303674
isok3 3625
isprM 2653
issolvable 110134
issquareclass 4172
lcmiu 112
lcmuu 1680
makeA4 49
makeA46 49
makeA462 49
makeA462vec 49
makeA46S46Pvec 91
makeA4S4 41944
makeA4S4resolvent 28
makeA4S4vec 91
makeA4_i 49
makeA5 14
makeA56 7
makeA56resolvent 7
makeA56vec 56
makeA56vec_i 63
makeA5_i 21
makeA5cond 7
makeA5condvec 35
makeA5resolvent 4221
makeA5vec 98
makeA5vec_i 133
makeC1 63
makeC1resolvent 21
makeC1vec 28
makeC2 133
makeC2resolvent 14
makeC2vec 161
makeC3 77
makeC32C4 56
makeC32C4_i 56
makeC32C4resolvent 28
makeC32C4vec 49
makeC32D4 49
makeC32D4resolvent 14
makeC32D4vec 42
makeC3C3 49
makeC3C3resolvent 21
makeC3C3vec 49
makeC3_f 322
makeC3_i 112
makeC3resolvent 14
makeC3vec 217
makeC4 644
makeC4resolvent 14
makeC4vec 133
makeC4vec_i 133
makeC5 49
makeC5vec 42
makeC6 105
makeC6resolvent 28
makeC6vec 91
makeC9 56
makeC9vec 49
makeCL 105
makeCL_f 98
makeCLall 0
makeCLresolvent 49
makeCLvec 238
makeD4 154
makeD4vec 84
makeD612 56
makeD612resolvent 14
makeD612vec 49
makeD9 63
makeD9resolvent 14
makeD9vec 49
makeDL 1428
makeDLresolvent 35
makeDLvec 1211
makeGid 23968
makeMgen 126
makeMgenresolvent 35
makeMgenvec 140
makeS32 49
makeS32common 77
makeS32resolvent 14
makeS32vec 42
makeS36 63
makeS36resolvent 21
makeS36vec 49
makeS3C3 49
makeS3C3vec 42
makeS3resolvent 14
makeS3vec 1316
makeS4 77
makeS462 49
makeS462vec 56
makeS46M 56
makeS46Mpols 637
makeS46Mvec 42
makeS46P 49
makeS46Ppols 343
makeS4_i 77
makeV4 49
makeV4pairs 21
makeV4pairssimple 7
makeV4resolvent 21
makeV4vec 42
makepol6 8497
makepol6abs 28
makepolC3 126
makepolC4 23624
makepolC5 1819
makepolS32 560
makevunits 23968
minlim 105
mullist2 112
mybnrclassfield 145273
mybnrclassfield_N 28
mybnrclassfield_X 184641
mynfsubfield 217
mynfsubfields 63
myshallowconcat1 57503
nfY 35
nfcoredisc 644745
nfcoredisc2 629202
nflist 8421
nflist_A462_worker 175
nflist_A46S46P_worker 882
nflist_A4S4_worker 22698
nflist_A4S4_worker_i 22712
nflist_C32C4_worker 1134
nflist_C32D4_worker 27272
nflist_C3C3_worker 224
nflist_C3_worker 4165
nflist_C4vec_worker 2246
nflist_C5_worker 3943
nflist_C6_worker 868
nflist_C9_worker 77
nflist_CL_worker 11407
nflist_D4_worker 3703
nflist_D612_worker 784
nflist_D9_worker 1533
nflist_DL_worker 6432
nflist_Mgen_worker 2807
nflist_S32_worker 7448
nflist_S36_worker 14700
nflist_S3C3_worker 413
nflist_S3I_worker 1027
nflist_S3R_worker 427
nflist_S462_worker 959
nflist_S46M_worker 252
nflist_V4_worker 5024
nflist_parapply 2905
nflistfile 273
nfmakenum 1995
nfmakesome 168
nfmakesomehard 14
nfmakevecnum 1904
nfresolvent 525
nfresolvent_i 525
nfresolvent_small 441
nonabelianfilter 1260
oddnorm 27419
ok_disc 917
ok_int 568204
ok_intu 1792
ok_s 721
okfield 1036
okgal 2912
okgal1 2380
okgal2 21
parselectS36 35
pol2s 12635
polD4onecond 177330
polV4 223903
polsubC4_D 27624
polsubcycloC2 0
polsubcycloC2_i 0
polsubcycloC3 7
polsubcycloC3_i 7
polsubcycloC4 63
polsubcycloC4_i 60081
polsubcycloC5 7
polsubcycloC5_i 3991
polsubcycloC6 0
polsubcycloC6_i 0
polsubcycloV4_i 28
polsubcyclofast 154
polsubcyclofast_i 154
prMconj 462
quadcubpow 57628
r2 58331
sceildiv 2145360
sceilsqrtn 427
sfloordiv 1182014
stable_arch 4515
sturmseparate 2919
sum2sq 329
to_principal_unit 110136
uC3pol_f 414904
ufund_pm 5243
uis_fundamental_pm 683346
uis_fundamental_pm_i 693235
usum2sq 7857
veccond_to_A5 0
vecs 70
vecs14 14
vecsliceA5 14
vecsliceA5all 273
vecsliceA5cond 0
vecslicebyX 273
zvV_to_ZXV 210
zv_is_1 41461

Generated by: LCOV version 1.16