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.18.1 lcov report (development 30318-7d854b8994) Lines: 2402 2473 97.1 %
Date: 2025-06-07 09:19:48 Functions: 149 149 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
phi2_atkin7_ZV 7
phi2_atkin5_ZV 14
phi2_w3w13_ZV 14
phi2_atkin3_ZV 21
phi2_w3w3e2_ZV 21
phi3_f3_ZV 21
phi2_w3w5_ZV 35
phi3_w2w13_ZV 42
phi5_w3w7_ZV 42
db_add_levels 45
FpV_deriv 56
phi2_w5w7_ZV 56
phi5_w2w3_ZV 56
phi5_w3w3_ZV 63
weber_exponent 84
phi7_w2w5_ZV 98
phi2_g2_ZV 119
Fp_polmodular_evalx 126
modinv_parent 140
modinv_parent_power 140
polmodular0_powerup_ZM 140
phi3_w2w7_ZV 182
phi5_f_ZV 182
phi_atkin7_j 203
phi_w3w13_j 210
double_eta_raw_to_Fp 238
modinv_f3_from_j 358
modinv_ramified 581
polmodular 630
phi_atkin5_j 841
twelth_root 899
Fp_modinv_to_j 1043
phi_w2w3_j 1060
modinv_is_Weber 1134
phi_w3w5_j 1152
modinv_j_from_f 1858
phi5_ZV 1859
phi3_ZV 1889
phi_w3w7_j 2412
Flv_deriv_pre_inplace 2464
eval_modpoly_modp 2674
phi_w2w13_j 2711
phi_atkin3_j 2779
phi_w2w5_j 2815
make_pcp_floor 2887
make_pcp_surface 2887
phi_w5w7_j 2896
discriminant_with_classno_at_least 3008
modpoly_height_bound 3008
select_L0 3008
calc_primes_for_discriminants 3010
modpoly_pickD 3010
scanD0 3010
modinv_f_from_j 3266
phi_w3w3_j 3686
fourth_root 3938
polmodular_db_add_levels 4934
eighth_root 5309
sixth_root 5498
double_eta_initial_js 5858
modinv_double_eta_from_j 5858
phi_w2w7_j 6173
modinv_j_from_2double_eta 6215
safe_abs_sqrt 10458
inflate_polys 10491
normalise_coeffs 10491
modpoly_pickD_primes 12096
modinv_double_eta_from_2j 14711
modfn_unambiguous_root 14789
modinv_pfilter 15106
carray_reverse_inplace 18738
polmodular_ZXX 19161
polmodular_ZM 19245
phi2_ZV 19994
polmodular_db_init 21471
sympol_to_ZM 24715
internal_db 24855
polmodular_small_ZM 24855
polmodular_db_add_level 25161
double_eta_Fl 26427
double_eta_raw 26938
double_eta_root 27344
polmodular0_ZM 27730
modinv_max_internal_level 27849
Flx_double_eta_jpoly 30004
double_eta_power 30004
double_eta_raw_to_Fl 32642
orientation_ambiguity 36429
polmodular_split_p_Flm 38834
polmodular_worker 38834
oneroot_of_classpoly 38837
enum_volcano_floor 38842
enum_volcano_surface 38843
get_Lsqr_cycle 38844
root_matrix 38844
modinv_level 40302
Flv_powu_inplace_pre 40875
roots_to_coeffs 41203
interpolate_coeffs 41532
modinv_sparse_factor 44712
Flx_double_eta_xpoly 46994
verify_L_sylow_is_cyclic 47416
double_eta_exponent 57586
modfn_preimage 65971
qform_primeform2 77503
find_noniso_L_isogenous_curve 83541
compute_L_isogenous_curve 83544
select_curve_with_L_tors_point 83544
Fl_mul5 92113
Fl_mul7 92113
Fle_quotient_from_kernel_generator 92119
find_L_tors_point 134853
mkqfis 135343
qfb_nform 135828
modfn_root 192371
primeform_discrete_log 201771
qfb_distinct_prods 229468
modinv_is_double_eta 237181
Flv_lastnonzero 343829
modinv_good_atkin 347228
polmodular_db_for_inv 356688
polmodular_db_getp 517992
modinv_odd_conductor 533138
update_Lsqr_cycle 537730
vecsmall_pick 576583
append_neighbours 576592
Fl_mul6 751675
check_generators 783190
Fl_mul8 843757
primeform_exp_order 1076948
qfb_is_two_torsion 1677753
Fl_mul4 1687415
disc_best_modinv 1907423
prime_to_conductor 3241532
red_primeform 3241532
Flm_Fl_phi3_evalx 3243601
Flm_Fl_phi5_evalx 5004265
Fl_addmul4 5011910
modinv_double_eta_good_disc 5296555
modinv_degree 7227247
Fl_addmul3 9725739
modinv_good_prime 10678551
_qsort_cmp 14437789
modinv_good_disc 15156970
modinv_height_factor 22223461
Fl_addmul5 24951373
Flm_Fl_phi2_evalx 26429047
Flm_Fl_polmodular_evalx 41802185
Fl_addmul2 55993955

Generated by: LCOV version 1.16