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 - polmodular.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 2281 2352 97.0 %
Date: 2024-04-23 08:07:35 Functions: 142 142 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
phi5_w3w7_ZV 42
db_add_levels 45
phi3_w2w13_ZV 49
weber_exponent 49
FpV_deriv 56
phi2_w5w7_ZV 56
phi5_w2w3_ZV 56
phi5_w3w3_ZV 63
phi7_w2w5_ZV 112
Fp_polmodular_evalx 119
phi2_g2_ZV 119
modinv_parent 147
modinv_parent_power 147
polmodular0_powerup_ZM 147
double_eta_raw_to_Fp 161
phi3_w2w7_ZV 182
phi5_f_ZV 182
phi_w3w13_j 210
modinv_f3_from_j 358
modinv_ramified 504
polmodular 623
modinv_is_Weber 784
twelth_root 898
Fp_modinv_to_j 1057
phi_w2w3_j 1060
phi_w3w5_j 1137
phi5_ZV 1502
phi3_ZV 1812
modinv_j_from_f 1858
phi_w3w7_j 2412
Flv_deriv_pre_inplace 2464
eval_modpoly_modp 2674
make_pcp_floor 2831
make_pcp_surface 2831
phi_w5w7_j 2889
phi_w2w13_j 2936
discriminant_with_classno_at_least 2959
modpoly_height_bound 2959
select_L0 2959
calc_primes_for_discriminants 2961
modpoly_pickD 2961
scanD0 2961
modinv_f_from_j 2967
phi_w2w5_j 3242
phi_w3w3_j 3534
fourth_root 3964
polmodular_db_add_levels 4906
eighth_root 5092
sixth_root 5493
double_eta_initial_js 5697
modinv_double_eta_from_j 5697
modinv_j_from_2double_eta 6159
phi_w2w7_j 6520
safe_abs_sqrt 9868
normalise_coeffs 10848
inflate_polys 10850
modpoly_pickD_primes 11592
modinv_double_eta_from_2j 12112
modfn_unambiguous_root 12301
modinv_pfilter 14553
carray_reverse_inplace 18176
polmodular_ZXX 18829
polmodular_ZM 18906
phi2_ZV 19928
polmodular_db_init 21125
double_eta_Fl 23506
double_eta_raw 23940
sympol_to_ZM 24194
internal_db 24341
polmodular_small_ZM 24341
double_eta_root 24471
polmodular_db_add_level 24683
polmodular0_ZM 27160
modinv_max_internal_level 27272
Flx_double_eta_jpoly 29409
double_eta_power 29409
double_eta_raw_to_Fl 29667
orientation_ambiguity 33902
oneroot_of_classpoly 37648
polmodular_split_p_Flm 37648
enum_volcano_surface 37651
polmodular_worker 37651
get_Lsqr_cycle 37653
root_matrix 37653
enum_volcano_floor 37654
modinv_level 39606
roots_to_coeffs 39826
interpolate_coeffs 40174
Flx_double_eta_xpoly 41317
Flv_powu_inplace_pre 42145
modinv_sparse_factor 43421
verify_L_sylow_is_cyclic 46171
double_eta_exponent 54041
modfn_preimage 63912
qform_primeform2 73534
compute_L_isogenous_curve 80998
select_curve_with_L_tors_point 80999
find_noniso_L_isogenous_curve 81000
Fl_mul5 89514
Fl_mul7 89514
Fle_quotient_from_kernel_generator 89519
mkqfis 128945
find_L_tors_point 130547
qfb_nform 135737
modfn_root 190511
primeform_discrete_log 197606
modinv_is_double_eta 232212
qfb_distinct_prods 232590
polmodular_db_for_inv 349450
Flv_lastnonzero 350621
polmodular_db_getp 510016
update_Lsqr_cycle 524873
modinv_odd_conductor 526621
vecsmall_pick 562520
append_neighbours 562533
Fl_mul6 745565
check_generators 761483
Fl_mul8 835026
primeform_exp_order 1048955
Fl_mul4 1669932
qfb_is_two_torsion 1688036
disc_best_modinv 1907423
Flm_Fl_phi3_evalx 3226709
prime_to_conductor 3257079
red_primeform 3257079
Flm_Fl_phi5_evalx 5009470
Fl_addmul4 5017428
modinv_double_eta_good_disc 5315161
modinv_degree 7243211
Fl_addmul3 9674587
modinv_good_prime 10592604
_qsort_cmp 14196534
modinv_good_disc 14799424
modinv_height_factor 22758954
Fl_addmul5 24947944
Flm_Fl_phi2_evalx 26248840
Flm_Fl_polmodular_evalx 41623141
Fl_addmul2 55578873

Generated by: LCOV version 1.14