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.12.0 lcov report (development 23353-42c433a02) Lines: 833 856 97.3 %
Date: 2018-12-15 05:41:59 Functions: 59 60 98.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
logfac 0
polclass_small_disc 91
evec_inverse 175
evec_equal 259
orient_pcp 266
evec_compose 518
polclass_psum 525
polclass 623
verify_2path 672
evec_inverse_o 735
distinct_inverses 1001
check_modinv 1225
next_prime_evec 1239
index_to_evec 1372
famatsmall_divexact 1676
modinv_inverted_involution 2131
modinv_negated_involution 2131
modinv_units 3276
vecsmall_isin_skip 3304
evec_n_to_m 3647
evec_orders 3647
pcp_alloc_and_set 3647
classgp_pcp_check_generators 3661
classgp_make_pcp 3760
classno_wrapper 3760
height_margin 3760
modinv_has_sign_ambiguity 3760
select_classpoly_prime_pool 3760
select_classpoly_primes 3760
upper_bound_on_classpoly_coeffs 3760
classgp_pcp_clear 3767
polclass0 3851
verify_edge 3962
evec_clear 4242
evec_order 4638
next_generator 4750
evec_ri_mutate 5520
adjust_orientation 5908
oriented_n_action 5908
adjust_signs 10318
evec_to_index 10542
evec_ri 13331
Flv_powsum_pre 15302
evec_reduce 20161
evec_copy 21956
is_smooth_enough 45913
hclassno_wrapper 49666
polclass_roots_modp 118389
select_twisting_param 118389
setup_norm_eqn 118389
find_jinv 118926
best_torsion_constraint 118990
hasse_bounds 118990
find_j_inv_with_given_trace 118997
oneroot_of_classpoly 118997
test_curve_order 140363
torsion_constraint 356970
random_FleV 505457
cmp_small 1057255
primecmp 1057255

Generated by: LCOV version 1.13