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.16.2 lcov report (development 29115-f22e516b23) Lines: 3109 3228 96.3 %
Date: 2024-04-26 08:07:25 Functions: 314 321 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
makeCLall 0
polsubcycloC2 0
polsubcycloC2_i 0
polsubcycloC6 0
polsubcycloC6_i 0
veccond_to_A5 0
vecsliceA5cond 0
makeA56 7
makeA56resolvent 7
makeA5cond 7
makeV4pairssimple 7
polsubcycloC3 7
polsubcycloC3_i 7
polsubcycloC5 7
makeA5 14
makeC2resolvent 14
makeC32D4resolvent 14
makeC3resolvent 14
makeC4resolvent 14
makeD612resolvent 14
makeD9resolvent 14
makeS32resolvent 14
makeS3resolvent 14
nfmakesomehard 14
vecs14 14
vecsliceA5 14
condrel_dummy 21
divispowerall 21
divissquare 21
doC32C4 21
makeA5_i 21
makeC1resolvent 21
makeC3C3resolvent 21
makeS36resolvent 21
makeV4pairs 21
makeV4resolvent 21
okgal2 21
gceilsqrtdiv 28
group_add_elt 28
makeA4S4resolvent 28
makeC1vec 28
makeC32C4resolvent 28
makeC6resolvent 28
makepol6abs 28
mybnrclassfield_N 28
polsubcycloV4_i 28
makeA5condvec 35
makeDLresolvent 35
makeMgenresolvent 35
nfY 35
parselectS36 35
makeC32D4vec 42
makeC5vec 42
makeS32vec 42
makeS3C3vec 42
makeS46Mvec 42
makeV4vec 42
divissquareall 49
makeA4 49
makeA46 49
makeA462 49
makeA462vec 49
makeA4_i 49
makeC32C4 49
makeC32C4_i 49
makeC32C4vec 49
makeC32D4 49
makeC3C3 49
makeC3C3vec 49
makeC5 49
makeC9vec 49
makeCLresolvent 49
makeD612vec 49
makeD9vec 49
makeS32 49
makeS36vec 49
makeS3C3 49
makeS462 49
makeS46M 49
makeS46P 49
makeV4 49
C5bnf 56
arch3 56
makeA56vec 56
makeC9 56
makeD612 56
makeS462vec 56
arch1 63
arch1g 63
arch2 63
arch2g 63
gal_get_order 63
makeA56vec_i 63
makeC1 63
makeD9 63
makeS36 63
mynfsubfields 63
polsubcycloC4 63
vecs 70
extractS3cond 77
makeC3 77
makeS32common 77
makeS4 77
makeS4_i 77
nflist_C9_worker 77
ceilsqrtndiv 84
makeD4vec 84
archA462 91
gets2s3 91
makeA46S46Pvec 91
makeA4S4vec 91
makeC6vec 91
archS4621 98
archS4623 98
makeA5vec 98
makeC6 98
makeCL_f 98
ZX_red_disc 105
makeCL 105
minlim 105
condrelresolvent 112
lcmiu 112
makeC3_i 112
mullist2 112
arch0 126
decp 126
makeMgen 126
makepolC3 126
makeA5vec_i 133
makeC4vec 133
makeC4vec_i 133
makeC2 140
makeMgenvec 140
A5vec 154
makeD4 154
polsubcyclofast 154
polsubcyclofast_i 154
makeC2vec 161
nfmakesome 168
archD40 175
archD41 175
cubicimag 175
nflist_A462_worker 175
archD42 182
C3vec 189
ceilsqrt 189
floorsqrt 189
condrel 196
cubicreal 203
sum2sq 203
bnrcfC9 210
condrel_i 210
zvV_to_ZXV 210
makeC3vec 217
mynfsubfield 217
C3vec_F 224
nflist_C3C3_worker 224
getarchD4 238
makeCLvec 238
ceilsqrtn 245
nflist_S46M_worker 252
A5file 273
nflistfile 273
vecsliceA5all 273
vecslicebyX 273
Sextract 280
P2Nfa 294
makeC4 329
makeC3_f 336
makeS46Ppols 343
checkcondC3 371
nflist_S3C3_worker 413
C5cleanB 427
checkfield 427
nflist_S3R_worker 427
sceilsqrtn 427
nfresolvent_small 441
MgenF 462
prMconj 462
nfresolvent 525
nfresolvent_i 525
makepolS32 560
doA4S4 630
glco46M 630
makeS46Mpols 630
cmp2 700
A4clean3 707
ok_s 721
ZX_red_disc2 749
nflist_D612_worker 783
divisorsdisc 798
C3pol_f 861
nflist_C6_worker 868
nflist_A46S46P_worker 880
ok_disc 917
getpol 945
nflist_S462_worker 959
cored 1022
nflist_S3I_worker 1029
okfield 1036
nflist_C32C4_worker 1134
gceilsqrtn 1162
makeDLvec 1211
nonabelianfilter 1253
cyclicprimegen 1281
makeS3vec 1316
makeDL 1421
nflist_D9_worker 1532
floorsqrtndiv 1617
lcmuu 1680
ok_intu 1792
C5prim 1819
makepolC5 1820
fa_is_fundamental_pm 1855
X2m 1881
nfmakevecnum 1904
nfmakenum 1974
C4vec 2228
nflist_C4vec_worker 2245
grouptranslate 2310
okgal1 2380
cyclicgalois 2625
isprM 2653
nflist_Mgen_worker 2807
checkfield_i 2821
getpell 2849
okgal 2870
sturmseparate 2884
nflist_parapply 2905
doC32C4_i 2933
floorsqrtn 3318
fund_pm 3493
isok3 3626
nflist_D4_worker 3703
nflist_C5_worker 3929
polsubcycloC5_i 3979
checkcondCL 4076
nflist_C3_worker 4163
issquareclass 4164
makeA5resolvent 4221
stable_arch 4515
Y2m 4906
nflist_V4_worker 5022
ufund_pm 5241
ceildiv 5702
cycfindaut 5894
group_nTk 6090
checkcondell_i 6298
X2p 6299
ideallistsquare 6426
nflist_DL_worker 6432
ceilsqrtdiv 7174
Pell2prfa 7217
nflist_S32_worker 7460
usum2sq 7731
P2fa 7985
nflist 8400
makepol6 8516
C6fill 8695
checkcondDL 10430
cubictypedec 11389
nflist_CL_worker 11390
RgXV_polred 11411
bnf_get_disc 12229
pol2s 12635
nflist_S36_worker 14705
bnfY 20164
doA462 20251
nflist_A4S4_worker 22700
nflist_A4S4_worker_i 22715
makepolC4 23587
S4_get_disc 23849
eltlist2 23954
makeGid 23954
makevunits 23954
C32D4pol 25291
cyc_is_trivial 25291
divide 27095
nflist_C32D4_worker 27272
bigdisc 27286
oddnorm 27419
C4qfbsolve 27624
polsubC4_D 27624
_nfsubfields1 28441
_nfsubfields 31647
RgVV_nb 34348
idlist 34348
S4makeidclass 35006
floorsqrtdiv 35979
gtoset_shallow 37210
gfloorsqrtdiv 38232
S4makeid 40411
zv_is_1 41461
A4S4_fa 41594
makeA4S4 41930
aut2 42238
ZV_is_1 45658
myshallowconcat1 57432
quadcubpow 57609
r2 58302
polsubcycloC4_i 59933
S4data 65777
checkS4data 65777
ZV_iseven 110094
issolvable 110111
to_principal_unit 110117
mybnrclassfield 145160
authI 177331
polD4onecond 177333
mybnrclassfield_X 184518
polV4 221810
is_fundamental_pm 303674
uC3pol_f 414904
ok_int 568163
nfcoredisc2 629202
nfcoredisc 644751
uis_fundamental_pm 683650
uis_fundamental_pm_i 694703
checkU 1086733
sfloordiv 1178030
sceildiv 2134842

Generated by: LCOV version 1.14