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-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 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 - elliptic.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17953-c39f2e6) Lines: 3235 3566 90.7 %
Date: 2015-08-29 Functions: 291 306 95.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1610 2274 70.8 %

Function Name Sort by function name Hit count Sort by hit count
CM_factor 14
E_compose_r 248773
E_compose_rst 260904
E_compose_t 234752
E_compose_u 0
F2_card 427
F3_card 1876
Fl_c4_to_a4 137708
Fl_c4c6_to_a4a6 137288
Fl_ell_to_a4a6 137288
FpE_issingular 252
Mod32 567070
PiI2div 8904
Q_numer 329
Zec_h_evalx 7
ZtoF2 84
_elleisnum 13489
_elleta 8869
_hell 217
_mul 175
_sqr 595
a4a6_ch 21976
a4a6_ch_Fl 420
addii3 1134
addii4 756
addii5 378
akell 693
anell 133
anellsmall 483
apk_good 735
approx_mod2 0
approx_mod3 0
aux 829864
aux2 1348662
base_ring 630503
bilhell 7
bilhell_i 21
c4_to_a4 2707730
c4c6_to_a4a6 2707730
cardmod2 406
cardmod3 1736
ch_FF 126
ch_Fp 7
ch_Fq 119
ch_Q 455
ch_Qp 7
ch_R 455
ch_Rg 7
check_periods 14469
check_real 13734
checkcoordch 616
checkell 3050960
checkell5 280
checkell_Fq 123844
checkell_Q 457352
checkell_Qp 0
checkell_int 1176
checkellisog 1148
checkellp 2809738
checkellpt 93277
chk_p 97085
composev_r 248773
composev_rst 260904
composev_s 67144
composev_st 97503
composev_t 246575
composev_u 0
compute_periods 14462
coordch 273
coordch_r 509950
coordch_rst 261177
coordch_s 111517
coordch_st 261177
coordch_t 328909
coordch_u 406
do_padic_agm 119
doellQp_Tate_uniformization 49
doellQp_ab 126
doellQp_root 161
doellR_ab 70
doellR_eta 28
doellR_omega 253
doellR_roots 351
doellcard 76890
doellff_get_o 903
doellgens 16800
doellglobalred 453383
doellgroup 38689
doellrootno 301
ec_2divpol_evalx 1246
ec_LHS_evalQ 2947
ec_bmodel 2227
ec_dFdx_evalQ 1190
ec_dFdy_evalQ 532
ec_dmFdy_evalQ 4662
ec_f_evalx 416745
ec_h_evalx 879459
ec_half_deriv_2divpol_evalx 1050
ellQ_get_CM 728
ellQ_get_N 945
ellQ_get_Nfa 224
ellQp_Tate_uniformization 84
ellQp_ab 28
ellQp_q 0
ellQp_root 168
ellQp_u 28
ellQp_u2 0
ellR_ab 973
ellR_eta 42
ellR_omega 1274
ellR_on_neutral 973
ellR_root 973
ellR_roots 1331
ell_is_integral 301
ell_over_Fq 226550
ell_reset 259
ell_to_a4a6 2707583
ell_to_a4a6_bc 21976
elladd 3283
ellan_get_ap 137743
ellanal_globalred 868
ellap 2718100
ellap_CM_fast 137918
ellbasechar 1008
ellcard 50261
ellcard_ram 2665747
ellchangecurve 280
ellchangeinvert 14
ellchangepoint 280
ellchangepoint0 280
ellchangepointinv 63
ellchangepointinv0 63
elldivpol 1407
elldivpol0 3339
elldivpol4 2345
elleisnum 4438
elleta 42
ellexpo 7
ellff_get_card 120703
ellff_get_gens 16877
ellff_get_group 39186
ellff_get_o 1183
ellff_get_p 142136
ellffmul 77688
ellformaldifferential 21
ellformaldifferential_i 273
ellformalexp 21
ellformallog 49
ellformallogsigma_t 203
ellformalpoint 21
ellformalpoint_i 294
ellformalw 329
ellfromj 33817
ellfromj_simple 22540
ellgen 1764
ellgenerators 16828
ellglobalred 452956
ellglobalred_all 453397
ellglobalred_i 454993
ellgroup 22701
ellgroup0 21294
ellgroup_m 22785
ellheight 126
ellheight0 28
ellheightmatrix 7
ellheightoo 868
ellheightpairing 35
ellinit 632414
ellinit_Fp 28879
ellinit_Fq 73264
ellinit_Q 494312
ellinit_Qp 56
ellinit_Rg 126
ellinit_nf 35917
ellinit_nf_to_Fq 2506
ellintegralmodel 453859
ellisoncurve 4158
ellissupersingular 164738
elljissupersingular 164703
elllocalred 98147
elllog 126
elllseries 14
ellminimalmodel 469
ellminimalmodel_i 454146
ellminimaltwist 189
ellminimaltwist0 189
ellminimaltwistcond 175
ellmul 78172
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 78171
ellneg 343
ellneg_i 49
ellnonsingularmultiple 217
ellomega_agm 246
ellomega_cx 78
ellordinate 1330
ellordinate_i 1330
ellpadicbil 7
ellpadicfrobenius 175
ellpadicheight 217
ellpadicheight0 70
ellpadicheightmatrix 28
ellpadiclog 14
ellpadics2 21
ellperiods 14
ellprint 0
ellrandom 93611
ellrootno 42
ellrootno_2 133
ellrootno_3 84
ellrootno_global 539
ellrootno_p 427
ellsigma 8904
ellsub 49
elltaniyama 14
elltatepairing 203
elltwist 27608
ellweilpairing 252
ellwp 0
ellwp0 140
ellwpnum_all 980
ellwpseries 14
ellwpseries_aux 196
ellxn 259
ellzeta 119
eta_correction 8862
expIxy 33446
exphellagm 973
fix_nftype 35917
gcomposev 140
get_c4c6 189
get_periods 14427
get_slope 3108
get_toadd 9835
get_u 453600
get_vu_p_small 2156
handle_Q 0
handle_coeff 2269295
hoo_aux 973
init_ch 2581502
initsmall 632554
invcmp 486
is_minimal_ap 742
is_minimal_ap_small 1939
is_trivial_change 454076
j_pval 878178
kod_23 217
localred 1626051
localred_23 748321
localred_p 877751
localred_result 1675051
localredbug 0
log_prec 7
logsigma_prec 203
min_get_v 453600
min_set_2 28
min_set_3 140
min_set_D 453607
min_set_a 453628
min_set_b 453768
min_set_c 453915
min_set_u 453915
min_to_ell 453607
myroundr 42
neron_2 133
neron_3 70
nfVtoalg 35924
nflocalred 48979
nflocalred_p 48979
nftoalg 181685
numroots2 746648
numroots3 228410
oncurve 3024
padic_mod 420
padic_prec 77
parse_p 210
point_to_a4a6 0
point_to_a4a6_Fl 420
pointell 910
precp_fix 301
quad_root 973
real_prec 77
red_modSL2 14455
redtausl2 8911
reduce_z 9877
rellg 7434
safe_Z_pval 1778
set_gamma 23366
sievep 137743
sievep_bad 1141
sievep_good 136602
slope_samex 1659
smod2BIL 56
tfromx 203
triv_ser 0
trueE 13489
val_aux 651
val_init 217
xmP 378
zell 42
zellQp 28
zell_closest_0 0
zellcx 7
zellrealneg 0
zellrealpos 7

Generated by: LCOV version 1.9