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 - polmodular.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21331-964717c) Lines: 2503 2625 95.4 %
Date: 2017-11-17 06:20:57 Functions: 150 150 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
phi2_w3w13_ZV 14
phi2_w3w3e2_ZV 21
phi3_f3_ZV 21
phi2_w3w5_ZV 35
phi3_w2w13_ZV 42
phi2_w5w7_ZV 49
phi5_w3w7_ZV 49
FpV_deriv 56
phi5_w3w3_ZV 56
phi2_g2_ZV 63
phi5_w2w3_ZV 70
weber_exponent 84
phi7_w2w5_ZV 98
Fp_polmodular_evalx 112
double_eta_raw_to_Fp 119
modinv_parent 133
modinv_parent_power 133
polmodular0_powerup_ZM 133
phi3_w2w7_ZV 154
phi5_f_ZV 189
phi_w3w13_j 210
modinv_f3_from_j 357
modinv_ramified 441
polmodular 609
Fp_modinv_to_j 665
modinv_is_Weber 721
twelth_root 1056
phi3_ZV 1057
phi5_ZV 1071
phi_w3w5_j 1107
phi_w2w3_j 1449
phi_w2w13_j 1876
modinv_j_from_f 1942
eval_modpoly_modp 2408
Flv_deriv_pre_inplace 2409
dinfo_to_vinfo 2451
modpoly_disc_info_clear 2451
ne_to_vne 2451
norm_eqn_init 2451
phi_w3w3_j 2495
discriminant_with_classno_at_least 2566
modpoly_height_bound 2566
select_L0 2566
phi_w5w7_j 2567
calc_primes_for_discriminants 2568
modpoly_pickD 2568
scanD0 2568
phi_w3w7_j 2944
modinv_f_from_j 3063
phi_w2w5_j 3500
polmodular_db_add_levels 3581
fourth_root 3674
modinv_j_from_2double_eta 5082
sixth_root 5288
eighth_root 5451
double_eta_initial_js 5522
modinv_double_eta_from_j 5522
phi_w2w7_j 5665
modpoly_pickD_primes 9346
inflate_polys 9722
normalise_coeffs 9722
safe_abs_sqrt 9976
modinv_double_eta_from_2j 10426
modfn_unambiguous_root 10452
modinv_pfilter 11914
polmodular_ZXX 14434
polmodular_ZM 14511
carray_reverse_inplace 14849
phi2_ZV 14952
polmodular_db_init 15155
sympol_to_ZM 17941
internal_db 18074
polmodular_small_ZM 18074
polmodular_db_add_level 19737
polmodular0_ZM 20514
modinv_max_internal_level 20619
double_eta_Fl 21470
double_eta_raw 21813
double_eta_root 22349
double_eta_raw_to_Fl 26552
Flx_double_eta_jpoly 26730
double_eta_power 26730
norm_eqn_update 30291
vne_to_ne 30296
vinfo_to_dinfo 30297
polmodular_worker 30301
oneroot_of_classpoly 30445
polmodular_split_p_Flm 30465
root_matrix 30488
enum_volcano_surface 30489
make_pcp_floor 30489
make_pcp_surface 30489
get_Lsqr_cycle 30490
enum_volcano_floor 30491
modinv_level 30814
orientation_ambiguity 32392
roots_to_coeffs 32690
interpolate_coeffs 33004
modinv_sparse_factor 35457
verify_L_sylow_is_cyclic 37041
Flx_double_eta_xpoly 37417
Flv_powu_inplace_pre 39572
double_eta_exponent 49198
modfn_preimage 49935
qform_primeform2 57879
find_noniso_L_isogenous_curve 66499
compute_L_isogenous_curve 66500
select_curve_with_L_tors_point 66500
Fle_quotient_from_kernel_generator 73053
Fl_mul5 73058
Fl_mul7 73059
eql_elt 87013
find_L_tors_point 106337
modfn_root 154525
mkqfis 159350
primeform_discrete_log 159477
qfb_nform 166005
modinv_is_double_eta 190343
qfb_distinct_prods 261990
polmodular_db_for_inv 290703
modinv_good_prime 302317
Flv_lastnonzero 329290
polmodular_db_getp 423040
update_Lsqr_cycle 424445
modinv_odd_conductor 430367
append_neighbours 454925
vecsmall_pick 454935
discrete_log 596537
check_generators 616175
Fl_mul6 642721
Fl_mul8 715752
primeform_exp_order 851486
Fl_mul4 1431410
qfb_is_two_torsion 2004114
disc_best_modinv 2373910
Flm_Fl_phi3_evalx 2886029
prime_to_conductor 3893743
red_primeform 3893743
Flm_Fl_phi5_evalx 3962851
Fl_addmul4 3964361
modinv_double_eta_good_disc 6455552
Fl_addmul3 8652326
modinv_degree 8846144
_qsort_cmp 12283032
modinv_good_disc 17707254
Fl_addmul5 19809646
Flm_Fl_phi2_evalx 22174246
Flm_Fl_polmodular_evalx 36001374
Fl_addmul2 47175443
modinv_height_factor 73172174

Generated by: LCOV version 1.11