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 30587-f85873d515) Lines: 2652 2817 94.1 %
Date: 2025-12-28 09:21:53 Functions: 157 163 96.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
phi2_atkin11_ZV 0
phi2_atkin13_ZV 0
phi2_atkin17_ZV 0
phi2_atkin19_ZV 0
phi_atkin11_j 0
phi_atkin19_j 0
phi2_atkin23_ZV 7
phi2_atkin3_ZV 7
phi2_atkin5_ZV 7
phi2_atkin29_ZV 14
phi2_atkin31_ZV 14
phi2_atkin7_ZV 14
phi2_w3w13_ZV 14
phi3_f3_ZV 14
phi2_w3w3e2_ZV 21
db_add_levels 24
phi2_w3w5_ZV 35
phi5_w3w7_ZV 42
phi3_w2w13_ZV 49
FpV_deriv 56
phi5_w2w3_ZV 56
phi5_w3w3_ZV 63
weber_exponent 63
phi2_w5w7_ZV 70
phi7_w2w5_ZV 91
phi2_g2_ZV 98
Fp_polmodular_evalx 126
modinv_parent 140
modinv_parent_power 140
polmodular0_powerup_ZM 140
modinv_f3_from_j 168
phi5_f_ZV 175
phi3_w2w7_ZV 182
phi_w3w13_j 210
phi_atkin13_j 224
phi_atkin7_j 273
phi_atkin5_j 287
double_eta_raw_to_Fp 357
phi_atkin23_j 504
polmodular 651
phi_atkin17_j 672
modinv_ramified 700
twelth_root 893
phi_atkin3_j 931
modinv_is_Weber 1029
Fp_modinv_to_j 1043
phi_w2w3_j 1060
phi_w3w5_j 1157
modinv_j_from_f 1830
phi5_ZV 1887
phi3_ZV 1917
phi_atkin29_j 2039
phi_atkin31_j 2222
phi_w3w7_j 2412
Flv_deriv_pre_inplace 2464
phi_w2w5_j 2500
eval_modpoly_modp 2674
phi_w2w13_j 2755
make_pcp_floor 2992
make_pcp_surface 2992
discriminant_with_classno_at_least 3114
modpoly_height_bound 3114
select_L0 3114
calc_primes_for_discriminants 3116
modpoly_pickD 3116
scanD0 3116
modinv_f_from_j 3147
phi_w5w7_j 3339
phi_w3w3_j 3883
fourth_root 3926
eighth_root 4720
polmodular_db_add_levels 5025
sixth_root 5340
double_eta_initial_js 6102
modinv_double_eta_from_j 6102
phi_w2w7_j 6163
modinv_j_from_2double_eta 6398
inflate_polys 9646
normalise_coeffs 9646
safe_abs_sqrt 9840
modpoly_pickD_primes 12575
modinv_pfilter 15691
modinv_double_eta_from_2j 17790
modfn_unambiguous_root 17869
polmodular_ZXX 19210
polmodular_ZM 19294
phi2_ZV 20050
carray_reverse_inplace 20064
polmodular_db_init 21527
sympol_to_ZM 24827
internal_db 24967
polmodular_small_ZM 24967
polmodular_db_add_level 26100
polmodular0_ZM 27948
modinv_max_internal_level 28067
double_eta_Fl 29994
double_eta_raw 30631
double_eta_root 30856
Flx_double_eta_jpoly 31102
double_eta_power 31102
double_eta_raw_to_Fl 36393
Flv_powu_inplace_pre 38569
modinv_level 40815
polmodular_split_p_Flm 41617
oneroot_of_classpoly 41619
polmodular_worker 41623
enum_volcano_floor 41629
enum_volcano_surface 41630
get_Lsqr_cycle 41630
root_matrix 41630
roots_to_coeffs 43865
orientation_ambiguity 43897
interpolate_coeffs 44193
modinv_sparse_factor 47712
verify_L_sylow_is_cyclic 50313
Flx_double_eta_xpoly 53888
double_eta_exponent 62314
modfn_preimage 71055
qform_primeform2 84555
find_noniso_L_isogenous_curve 89355
compute_L_isogenous_curve 89356
select_curve_with_L_tors_point 89356
Fl_mul5 98043
Fl_mul7 98043
Fle_quotient_from_kernel_generator 98046
find_L_tors_point 143345
qfb_nform 144557
mkqfis 148849
modfn_root 201941
primeform_discrete_log 209134
qfb_distinct_prods 231183
modinv_is_double_eta 251075
Flv_lastnonzero 330552
polmodular_db_for_inv 377562
polmodular_db_getp 548073
modinv_odd_conductor 548100
update_Lsqr_cycle 626046
modinv_good_atkin 633269
vecsmall_pick 667674
append_neighbours 667687
check_generators 802637
Fl_mul6 829380
Fl_mul8 927377
primeform_exp_order 1101615
qfb_is_two_torsion 1697990
Fl_mul4 1854603
disc_best_modinv 1907423
prime_to_conductor 3464791
red_primeform 3464791
Flm_Fl_phi3_evalx 4417999
Flm_Fl_phi5_evalx 5163247
Fl_addmul4 5171565
modinv_double_eta_good_disc 5468111
modinv_degree 7402220
modinv_good_prime 11096729
Fl_addmul3 13220089
_qsort_cmp 14914912
modinv_good_disc 15109326
modinv_height_factor 22899725
Fl_addmul5 25714805
Flm_Fl_phi2_evalx 30223325
Flm_Fl_polmodular_evalx 46777587
Fl_addmul2 64583534

Generated by: LCOV version 1.16