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 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.10.0 lcov report (development 21353-12523aa) Lines: 925 961 96.3 %
Date: 2017-11-24 06:20:58 Functions: 57 58 98.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
logfac 0
polclass_small_disc 63
evec_inverse 168
evec_equal 231
orient_pcp 231
evec_compose 518
polclass_psum 518
polclass 616
verify_2path 672
evec_inverse_o 707
distinct_inverses 987
check_modinv 1218
next_prime_evec 1225
index_to_evec 1323
modinv_inverted_involution 1869
modinv_negated_involution 1869
modinv_units 3178
carray_isin 3304
evec_n_to_m 3451
evec_orders 3451
pcp_alloc_and_set 3451
classgp_pcp_check_generators 3465
classgp_make_pcp 3550
classno_wrapper 3550
height_margin 3550
modinv_has_sign_ambiguity 3550
select_classpoly_prime_pool 3550
select_classpoly_primes 3550
upper_bound_on_classpoly_coeffs 3550
classgp_pcp_clear 3557
polclass0 3613
verify_edge 3654
evec_clear 4025
evec_order 4421
next_generator 4533
adjust_orientation 5082
oriented_n_action 5082
evec_ri_mutate 5359
evec_to_index 9408
adjust_signs 9730
evec_ri 12647
Flv_powsum_pre 13629
evec_reduce 18579
evec_copy 20297
is_smooth_enough 44401
hclassno_wrapper 47944
polclass_roots_modp 114784
select_twisting_param 114784
setup_norm_eqn 114784
find_jinv 115014
hasse_bounds 115046
find_j_inv_with_given_trace 115053
oneroot_of_classpoly 115053
test_curve_order 136901
famatsmall_divexact 233761
cmp_small 1031698
primecmp 1031698
jac_eq_or_opp 3324418

Generated by: LCOV version 1.11