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 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.10.0 lcov report (development 19832-7f23dbb) Lines: 3801 4083 93.1 %
Date: 2016-12-08 05:49:22 Functions: 328 337 97.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CM_factor 14
E_gcompose_r 161749
E_gcompose_rt 248395
E_gcompose_s 109221
E_gcompose_st 181937
E_gcompose_t 250110
E_gcompose_u 151039
F2_card 1477
F3_card 2975
Fl_c4_to_a4 442781
Fl_c4c6_to_a4a6 442361
Fl_ell_to_a4a6 442361
FpE_issingular 252
Fq_c4_to_a4 135156
Fq_c4c6_to_a4a6 135156
PiI2div 8904
Q_numer 329
Qp_agm2_sequence 210
Qp_ascending_Landen 56
Qp_descending_Landen 301
Tate_prec 581
Z_gcd_primes 454713
Zec_h_evalx 1170316
ZtoF2 112
_elleisnum 13489
_elleta 8869
_hell 217
_mul 175
_sqr 616
a4a6_ch 22024
a4a6_ch_Fl 420
addii3 1134
addii4 756
addii5 378
akell 693
apk_good 735
approx_mod2 26278
approx_mod3 13139
aux 888699
aux2 1421994
base_ring 707437
bilhell 7
bilhell_i 21
bnf_get_v 42
c4_to_a4 2716806
c4c6_to_a4a6 2716806
cardmod2 1456
cardmod3 2835
ch_FF 126
ch_Fp 7
ch_Fq 119
ch_Q 36764
ch_Qp 7
ch_R 36764
ch_Rg 21
check_complex 15540
check_periods 14469
check_real 13734
checkcoordch 72226
checkell 3999308
checkell5 71890
checkell_Fq 274428
checkell_Q 4725
checkell_Qp 0
checkell_int 693
checkellisog 2212
checkellp 3052368
checkellpt 244546
chk_p 97263
compute_periods 14462
coordch 72422
coordch_r 875826
coordch_rst 347634
coordch_rt 169848
coordch_s 227199
coordch_st 359863
coordch_t 594384
coordch_u 223930
doellQp_Tate 91
doellQp_ab 273
doellQp_root 224
doellR_ab 70
doellR_eta 28
doellR_omega 610
doellR_roots 715
doellcard 115049
doellff_get_o 903
doellgens 16800
doellgroup 38675
doellrootno 672
ec_2divpol_evalx 1449
ec_LHS_evalQ 2982
ec_bmodel 3284
ec_dFdx_evalQ 1351
ec_dFdy_evalQ 532
ec_dmFdy_evalQ 5453
ec_f_evalx 753571
ec_h_evalx 763735
ec_half_deriv_2divpol_evalx 1253
ellQ_get_CM 2198
ellQ_get_N 8001
ellQ_get_Nfa 588
ellQ_globalred 454223
ellQap 98574
ellQap_u 101087
ellQminimalmodel 1414
ellQp_AGM 147
ellQp_L 0
ellQp_P2t 112
ellQp_P2t_err 7
ellQp_Tate_uniformization 665
ellQp_ab 105
ellQp_q 105
ellQp_root 455
ellQp_t2P 56
ellQp_u 168
ellQp_u2 56
ellR_ab 973
ellR_eta 42
ellR_omega 1638
ellR_on_neutral 973
ellR_root 973
ellR_roots 1688
ell_is_integral 301
ell_over_Fq 527576
ell_reset 71869
ell_to_a4a6 2716660
ell_to_a4a6_bc 22023
elladd 3472
ellan 1043
ellanQ 805
ellanQ_zv 1463
ellan_get_ap 441710
ellanal_globalred 2086
ellap 2922983
ellap_CM_fast 444797
ellbasechar 1533
ellcard 87882
ellcard_ram 2772959
ellchangecurve 71890
ellchangeinvert 21
ellchangepoint 280
ellchangepoint0 280
ellchangepointinv 63
ellchangepointinv0 63
elldivpol 1981
elldivpol0 3752
elldivpol4 3108
elleisnum 4438
elleta 42
ellexpo 7
ellff_get_card 158372
ellff_get_gens 16877
ellff_get_group 39172
ellff_get_o 1183
ellff_get_p 179799
ellffmul 228102
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 453096
ellglobalred_i 464233
ellgroup 22687
ellgroup0 21301
ellgroup_m 22778
ellheight 133
ellheight0 35
ellheightmatrix 7
ellheightoo 868
ellheightpairing 35
ellinit 673004
ellinit_Fp 29181
ellinit_Fq 112724
ellinit_Q 495467
ellinit_Qp 91
ellinit_Rg 140
ellinit_nf 36036
ellinit_nf_to_Fq 2982
ellintegralmodel 21
ellintegralmodel_i 457002
ellisoncurve 4193
ellissupersingular 164878
elljissupersingular 164703
elllocalred 195153
elllog 126
elllseries 14
ellminimalmodel 1463
ellminimalmodel_i 456106
ellminimaltwist 497
ellminimaltwist0 441
ellminimaltwistcond 231
ellmul 228684
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 228628
ellneg 357
ellneg_i 49
ellnf_D_primes 91
ellnf_c4c6_primes 133
ellnf_to_Fq 2982
ellnfan 245
ellnfap 233506
ellnfglobalred 91
ellnflocal 135590
ellnfminimalmodel 42
ellnfminimalmodel_i 42
ellnonsingularmultiple 217
ellomega_agm 610
ellomega_cx 162
ellordinate 1848
ellordinate_i 1848
ellpadicbil 7
ellpadicfrobenius 175
ellpadicheight 217
ellpadicheight0 70
ellpadicheightmatrix 28
ellpadiclog 14
ellpadics2 21
ellperiods 14
ellprint 0
ellrandom 244048
ellrootno 42
ellrootno_2 168
ellrootno_3 217
ellrootno_global 1750
ellrootno_p 840
ellsea 28
ellsigma 8904
ellsub 49
elltaniyama 14
elltatepairing 294
elltwist 28385
ellweilpairing 280
ellwp 0
ellwp0 140
ellwpnum_all 980
ellwpseries 14
ellwpseries_aux 196
ellxn 259
ellzeta 119
eta_correction 8862
expIxy 33432
exphellagm 973
fix_nftype 36036
gcomposev 462
get_c4c6 189
get_periods 14427
get_piinv 62783
get_r0 161
get_slope 3297
get_toadd 9842
get_u 454580
get_vp_u 878444
get_vp_u_small 1682555
handle_Q 392
handle_coeff 2285010
hoo_aux 973
init_ch 3263631
initsmall 673641
invcmp 759
is_trivial_change 456057
j_pval 879284
kod_23 385
localred 1580845
localred_23 702646
localred_p 878444
localred_result 1728202
localredbug 0
log_prec 7
logsigma_prec 203
min_get_v 1170316
min_set_2 28
min_set_3 140
min_set_D 1170323
min_set_a 1170344
min_set_all 1170316
min_set_b 1170484
min_set_c 1170631
min_set_u 1170631
min_to_ell 1157233
myroundr 42
neron_2 168
neron_3 175
nfVtoalg 36043
nflocalred 97937
nflocalred_23 97881
nflocalred_p 49231
nflocalred_section7 15498
nfrestrict23 21
nftoalg 1257109
numroots2 788886
numroots3 244307
oncurve 3059
padic_prec 119
parse_p 210
point_to_a4a6 0
point_to_a4a6_Fl 420
pointell 966
pol2sqrt_23 578165
pola1a2 238973
pola2a4a6 214039
pola3a6 387233
precp_fix 301
quad_root 973
real_prec 77
red_modSL2 14462
redtausl2 8911
reduce_z 9884
rellg 7434
safe_Z_lval 2576
set_gamma 23373
sievep 441710
sievep_bad 2457
sievep_good 439253
slope_samex 1799
tfromx 203
triv_ser 0
trueE 13489
twist2 364
val_aux 1155
val_init 385
xmP 378
zell 126
zell_closest_0 0
zellcx 7
zellrealneg 0
zellrealpos 7
zk_capZ 357

Generated by: LCOV version 1.11