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 21741-70cf009) Lines: 3657 3907 93.6 %
Date: 2018-01-21 06:18:30 Functions: 330 338 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CM_factor 14
F2_card 1750
F3_card 3115
Fl_c4_to_a4 303306
Fl_c4c6_to_a4a6 303012
Fl_ell_to_a4a6 303012
Fq_c4_to_a4 70105
Fq_c4c6_to_a4a6 70105
PiI2div 9002
Q_numer 329
Q_to_globalred 784
Q_to_minimalprimes 833
Z_gcd_primes 455476
Zec_h_evalx 1170358
ZtoF2 126
_elleisnum 13545
_elleta 8925
_hell 140
_mul 175
_sqr 602
a4a6_ch 22107
a4a6_ch_Fl 294
akell 693
apk_good 735
approx_mod2 26306
approx_mod3 13153
aux 888503
aux2 1421980
base_ring 710955
bilhell 7
bilhell_i 21
bnf_get_v 49
c4_to_a4 2740594
c4c6_to_a4a6 2740594
cardmod2 1729
cardmod3 2975
ch_FF 126
ch_Fp 7
ch_Fq 119
ch_Q 36939
ch_Qp 7
ch_R 36939
ch_Rg 28
check_complex 15561
check_periods 14574
check_real 13790
checkcoordch 72730
checkell 4071798
checkell5 72149
checkell_Fq 279391
checkell_Q 2737
checkell_Qp 0
checkell_int 693
checkellisog 3248
checkellp 3077520
checkellpt 306851
chk_p 97276
compute_periods 14567
coordch 72198
coordch_r 611114
coordch_rst 347403
coordch_s 117999
coordch_st 347403
coordch_t 344876
coordch_uinv 73143
cxredsl2 9002
doellR_ab 203
doellR_eta 70
doellR_omega 3823
doellR_roots 4222
doellcard 114671
doellff_get_o 833
doellgens 16828
doellgroup 38766
doellnfrootno 147
doellrootno 616
ec_2divpol_evalx 1687
ec_3divpol_evalx 14
ec_LHS_evalQ 15470
ec_bmodel 8681
ec_dFdx_evalQ 2247
ec_dFdy_evalQ 532
ec_dmFdy_evalQ 5684
ec_f_evalx 528759
ec_h_evalx 545517
ec_half_deriv_2divpol_evalx 1491
ellQ_bsd 21
ellQ_get_CM 2177
ellQ_get_N 7315
ellQ_get_Nfa 588
ellQ_globalred 454132
ellQ_height 133
ellQ_rootno 42
ellQ_tamagawa 35
ellQap 98518
ellQap_u 101262
ellQminimalmodel 1736
ellQp_P2t 112
ellQp_P2t_err 7
ellQp_t2P 56
ellR_ab 1106
ellR_area 2114
ellR_eta 84
ellR_omega 5096
ellR_on_neutral 1106
ellR_root 1106
ellR_roots 5195
ell_is_integral 203
ell_over_Fq 552425
ell_reset 72128
ell_to_a4a6 2740447
ell_to_a4a6_bc 22109
ell_to_nfell10 99218
elladd 13321
ellan 1659
ellanQ 1477
ellanQ_zv 1750
ellan_get_ap 302991
ellanal_globalred 1568
ellap 2947868
ellap_CM_fast 305777
ellbasechar 2492
ellbsd 63
ellcard 87994
ellcard_ram 2796612
ellchangecurve 72149
ellchangeinvert 21
ellchangepoint 525
ellchangepoint0 525
ellchangepointinv 63
ellchangepointinv0 63
elldivpol 3549
elldivpol0 4165
elldivpol4 5047
elleisnum 4438
elleta 84
ellexpo 7
ellff_get_card 158506
ellff_get_gens 16905
ellff_get_group 39305
ellff_get_o 1134
ellff_get_p 179996
ellffmul 247918
ellfromj 33817
ellfromj_simple 22540
ellgen 1771
ellgenerators 16842
ellglobalred 453971
ellglobalred_i 463029
ellgroup 22799
ellgroup0 21350
ellgroup_m 22848
ellheight 224
ellheight0 140
ellheight_C 28
ellheightmatrix 7
ellheightoo 1001
ellheightpairing 35
ellinit 676455
ellinit_Fp 29254
ellinit_Fq 112719
ellinit_Q 495810
ellinit_Qp 126
ellinit_Rg 5894
ellinit_nf 36911
ellinit_nf_to_Fq 3024
ellintegralmodel 224
ellintegralmodel_i 458878
ellisoncurve 16681
ellissupersingular 164906
elljissupersingular 164703
elllocalred 195153
elllog 133
elllseries 14
ellminimaldisc 21
ellminimalmodel 1792
ellminimalmodel_i 456204
ellminimalnormu 756
ellminimalprimes 819
ellminimaltwist 497
ellminimaltwist0 441
ellminimaltwistcond 231
ellmul 248457
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 248393
ellneg 735
ellneg_i 49
ellnf2isog 252
ellnf_D_primes 784
ellnf_adelicvolume 756
ellnf_bsd 42
ellnf_bsdperiod 756
ellnf_c4c6_primes 847
ellnf_height 91
ellnf_localheight 245
ellnf_reladelicvolume 217
ellnf_rootno_global 147
ellnf_tamagawa 784
ellnf_to_Fq 3024
ellnf_vec_wrap 84
ellnf_vecarea 28
ellnf_veceta 28
ellnf_vecomega 28
ellnfan 189
ellnfap 168294
ellnfembed 931
ellnfembed_free 840
ellnfglobalred 784
ellnflocal 69405
ellnfminimalmodel 49
ellnfminimalmodel_i 49
ellomega_agm 3823
ellomega_cx 3018
ellordinate 1470
ellordinate_i 1470
ellpadicheight0 70
ellpadicheightmatrix 21
ellperiods 42
ellpointnfembed 91
ellprint 0
ellrandom 244062
ellrnfup 322
ellrootno 140
ellrootno_2 161
ellrootno_3 147
ellrootno_global 1624
ellrootno_p 770
ellsea 70
ellsigma 8967
ellsub 49
elltamagawa 42
elltaniyama 14
elltatepairing 294
elltwist 28231
ellweilpairing 5236
ellwp 0
ellwp0 182
ellwpnum_all 987
ellwpseries 14
ellwpseries_aux 301
ellxn 392
ellzeta 154
eta_correction 8890
expIxy 33600
exphellagm 1106
fix_nftype 36337
gcomposev 560
get_c4c6 294
get_periods 14490
get_piinv 3556
get_r0 161
get_toadd 9891
get_u 454629
get_uniformizers 150122
get_vp_u 878325
get_vp_u_small 1682527
handle_Q 5222
handle_coeff 2294390
hoo_aux 1106
init_ch 3267187
initsmall 680706
invcmp 3342
is_trivial_change 456442
j_pval 879095
kod_23 308
localred 1580719
localred_23 702639
localred_p 878325
localred_result 1731086
localredbug 0
min_get_v 1170358
min_set_2 28
min_set_3 140
min_set_D 1170365
min_set_a 1170386
min_set_all 1170358
min_set_b 1170526
min_set_c 1170673
min_set_u 1170673
min_to_ell 1157275
myroundr 42
neron_2 161
neron_3 112
nfVtoalg 36925
nf_compose_r 164045
nf_compose_rt 251538
nf_compose_s 109550
nf_compose_st 184114
nf_compose_t 253610
nf_compose_u 152943
nf_coordch 420
nf_coordch_r 267162
nf_coordch_rst 420
nf_coordch_rt 171059
nf_coordch_s 109550
nf_coordch_st 12901
nf_coordch_t 251783
nf_coordch_uinv 153363
nflocalred 101052
nflocalred_23 99218
nflocalred_p 50904
nflocalred_section7 15498
nfrestrict23 28
nftoalg 386904
numroots2 788886
numroots3 244237
oncurve 15547
padic_prec 154
point_to_a4a6 0
point_to_a4a6_Fl 294
pointell 966
pol2sqrt_23 584423
pola1a2 241787
pola2a4a6 216216
pola3a6 391531
quad_root 1106
real_prec 77
red_modSL2 14567
reduce_z 9919
rootnovalp 252
safe_Z_lval 2618
set_gamma 23569
sievep 302991
sievep_bad 2688
sievep_good 300303
slope_samex 1743
triv_ser 0
trueE 13545
twist2 364
val_aux 924
val_init 308
zell 154
zell_closest_0 0
zellcx 35
zellrealneg 0
zellrealpos 7
zk_capZ 2478

Generated by: LCOV version 1.11