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 - polclass.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 825 846 97.5 %
Date: 2024-04-19 08:07:09 Functions: 72 73 98.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
logfac 0
evec_inverse 203
evec_equal 259
orient_pcp 280
evec_compose 518
polclass_psum 553
verify_2path 672
evec_inverse_o 735
distinct_inverses 1001
next_prime_evec 1239
index_to_evec 1386
polclass_small_disc 1491
polclass 2170
modinv_inverted_involution 2236
modinv_negated_involution 2236
famatsmall_divexact 2540
check_modinv 2786
modinv_units 3472
verify_edge 3966
evec_n_to_m 4328
evec_orders 4328
classgp_pcp_check_generators 4349
classgp_make_pcp 4861
height_margin 4861
modinv_has_sign_ambiguity 4861
pcp_get_fau 4861
quadnegclassnou 4861
select_classpoly_prime_pool 4861
select_classpoly_primes 4861
upper_bound_on_classpoly_coeffs 4861
evec_clear 5042
evec_order 5529
next_generator 5655
evec_ri_mutate 5796
adjust_orientation 6159
oriented_n_action 6159
polclass0 6352
pcp_get_n 6439
pcp_get_o 6439
pcp_get_orient_reps 6439
pcp_get_r 6439
pcp_get_m 6712
pcp_get_orient_p 6712
pcp_get_orient_q 6712
vecsmall_isin_skip 7612
pcp_get_L 9299
pcp_get_L0 9299
evec_to_index 10797
adjust_signs 10843
pcp_get_k 11300
evec_copy 12213
evec_ri 13535
Flv_powsum_pre 15978
evec_reduce 21554
pcp_get_u 137072
polclass_roots_modp 137105
polclass_worker 137105
find_jinv 138359
best_torsion_constraint 138510
hasse_bounds 138680
find_j_inv_with_given_trace 138713
oneroot_of_classpoly 138929
pcp_get_D 146761
pcp_get_inv 147108
test_curve_order 164648
norm_eqn_set 174714
factor_uv 182927
hclassno_wrapper 187788
pcp_get_D0 187788
pcp_get_h 187788
torsion_constraint 415184
random_FleV 853011
primecmp 1216473

Generated by: LCOV version 1.14