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-bordeaux1.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 - modules - ellsea.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17837-9309d7c) Lines: 954 1015 94.0 %
Date: 2015-05-22 Functions: 64 67 95.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 403 538 74.9 %

Function Name Sort by function name Hit count Sort by hit count
BSGS_pre 1148
FlxX_equal 1601
Flxq_study_eqn 306
FpXQ_study_eqn 427
Fp_ellcard_SEA 574
Fp_study_eqn 5831
FqX_equal 24642
FqX_homogenous_div 994
FqX_homogenous_eval 4606
FqX_numer_isog_abscissa 1001
Fq_ellcard_SEA 609
Fq_elldivpol2 6825
Fq_elldivpol2d 6825
Fq_ellj 1610
Fq_to_Flx 498
Zq_Z_div_safe 105252
Zq_div 172963
Zq_divexact 64309
Zq_ellj 35
Zq_inv 1463
Zq_pval 64274
Zq_sqrt 0
add_atkin 2450
champion 609
cmp_atkin 10311
compute_diff 1148
compute_u 4270
cost 164451
eigen_elladd 13389
eigen_elldbl 5344
eigen_ellmulu 2338
eigenu_elladd 996
eigenu_elldbl 291
ellmodulareqn 7
ellsea 0
err_modular_eqn 0
find_coeff 11648
find_eigen_value 3262
find_eigen_value_power 994
find_isogenous 4942
find_isogenous_from_Atkin 1701
find_isogenous_from_canonical 3241
find_kernel 5824
find_kernel_power 1001
find_trace 6265
find_trace_Atkin 2877
find_trace_Elkies_power 3311
find_trace_lp1_roots 70
find_trace_one_root 385
get_FqE_group 581
get_bound_bsgs 609
get_lgatkin 1183
get_modular_eqn 6272
get_seadata 21
init_eigen 4028
init_eigenu 228
list_to_pol 6272
match_and_sort 581
multiple_crt 1085
pari_close_seadata 1780
pari_init_seadata 2288
possible_traces 1148
seadata_filename 21
separation 574
set_cost 65107
study_modular_eqn 6265
value 132629

Generated by: LCOV version 1.9