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 17110-9967e23) Lines: 950 1009 94.2 %
Date: 2014-11-26 Functions: 63 66 95.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 398 528 75.4 %

Function Name Sort by function name Hit count Sort by hit count
BSGS_pre 810
FlxX_equal 1129
Flxq_study_eqn 216
FpXQ_study_eqn 305
Fp_ellcard_SEA 405
Fp_study_eqn 4120
FqX_equal 17396
FqX_homogenous_div 695
FqX_homogenous_eval 3135
FqX_numer_isog_abscissa 700
Fq_ellcard_SEA 430
Fq_elldivpol2 4791
Fq_elldivpol2d 4791
Fq_ellj 5130
Zq_Z_div_safe 74544
Zq_div 121565
Zq_divexact 45479
Zq_ellj 25
Zq_inv 1045
Zq_pval 45454
Zq_sqrt 0
add_atkin 1730
champion 430
cmp_atkin 7280
compute_diff 810
compute_u 3086
cost 117140
eigen_elladd 9494
eigen_elldbl 3742
eigen_ellmulu 1635
eigenu_elladd 706
eigenu_elldbl 203
ellmodulareqn 5
ellsea 0
err_modular_eqn 0
find_coeff 8182
find_eigen_value 2305
find_eigen_value_power 695
find_isogenous 3395
find_isogenous_from_Atkin 1200
find_isogenous_from_canonical 2195
find_kernel 4091
find_kernel_power 700
find_trace 4430
find_trace_Atkin 2035
find_trace_Elkies_power 2340
find_trace_lp1_roots 50
find_trace_one_root 270
get_FqE_group 410
get_bound_bsgs 430
get_lgatkin 835
get_modular_eqn 4435
get_seadata 15
init_eigen 2840
init_eigenu 160
list_to_pol 4435
match_and_sort 410
multiple_crt 770
pari_close_seadata 916
pari_init_seadata 948
possible_traces 810
seadata_filename 15
separation 405
set_cost 46380
study_modular_eqn 4430
value 94470

Generated by: LCOV version 1.9