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 16624-25b9976) Lines: 869 928 93.6 %
Date: 2014-06-24 Functions: 55 57 96.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 331 446 74.2 %

Function Name Sort by function name Hit count Sort by hit count
BSGS_pre 760
FlxX_equal 670
Flxq_study_eqn 120
FpXQ_study_eqn 200
Fp_ellcard_SEA 375
Fp_study_eqn 3755
FqX_equal 16240
Fq_ellcard_SEA 390
Fq_ellj 4625
add_atkin 1580
champion 405
cmp_atkin 6635
compute_W 1330
compute_diff 760
compute_u 2831
cost 110790
eigen_elladd 8845
eigen_elldbl 3520
eigen_ellmulu 1535
eigenu_elladd 450
eigenu_elldbl 100
ellmodulareqn 5
ellsea 0
err_modular_eqn 0
find_coeff 8942
find_eigen_value 2095
find_eigen_value_power 665
find_isogenous 3105
find_isogenous_from_Atkin 1070
find_isogenous_from_canonical 2035
find_kernel 3806
find_kernel_power 665
find_numerator_isogeny 665
find_trace 3960
find_trace_Atkin 1835
find_trace_Elkies_power 2105
find_trace_lp1_roots 15
find_trace_one_root 215
find_transformation 665
get_FqE_group 385
get_bound_bsgs 390
get_lgatkin 785
get_modular_eqn 3965
get_seadata 15
init_eigen 2670
init_eigenu 90
list_to_pol 3965
match_and_sort 385
multiple_crt 675
pari_close_seadata 881
pari_init_seadata 913
possible_traces 760
seadata_filename 15
separation 380
set_cost 43875
study_modular_eqn 3960
value 89285

Generated by: LCOV version 1.9