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 - gp - gp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16804-345a01c) Lines: 494 1256 39.3 %
Date: 2014-09-20 Functions: 50 119 42.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 271 932 29.1 %

Function Name Sort by function name Hit count Sort by hit count
_cat 0
aide 126
aide0 126
alarm0 39824
atocolor 0
brace_color 0
break_loop 49
break_loop_prompt 49
center 0
check_meta 46787
chron 70
closure_alarmer 0
color_prompt 0
commands 7
community 0
compare_str 168
convert_time 0
cut_trailing_garbage 98
dbg_down 0
dbg_err 7
dbg_up 7
default_help 21
digit_help 7
do_prompt 11421
echo_and_log 40396
err_gprc 0
escape 315
expand_prompt 0
external_help 0
fgets_texmacs 0
filter_quotes 0
filtered_buffer 1257
free_cmd 0
free_trivial_stack 0
gentypes 7
get_home 0
get_line_from_file 47990
get_preproc_value 0
gp_alarm 0
gp_alarm_fun 0
gp_alarm_handler 0
gp_ask_confirm 0
gp_err_recover 112
gp_format_time 0
gp_handle_exception 3196
gp_head 0
gp_initrc 0
gp_main_loop 1194
gp_output 21763
gp_pre_recover 3189
gp_quit 1182
gp_read_line 47976
gp_sigint_fun 0
gprc_chk 0
gprc_get 0
handle_texmacs_command 0
has_ext_help 7
hit_return 0
init_help 1194
init_trivial_stack 0
input0 14
is_interactive 58667
is_silent 30218
kill_buffers_upto 4476
kill_buffers_upto_including 0
main 1194
matchQ 0
member_commands 7
menu_commands 7
next_expr 0
nl_read 0
normal_output 0
ok_external_help 0
pari_breakpoint 7
parse_key_val 0
parse_texmacs_command 0
pop_buffer 1245
prettyp_init 0
prettyp_wait 0
print_fun_list 7
print_shortversion 0
print_version 0
read_arg 0
read_arg_equal 0
read_dot_uint 0
read_main 0
read_opt 1194
read_uint 0
read_version 0
readstring 0
record_default 0
reset_ctrlc 39941
sd_breakloop 7
sd_echo 161
sd_graphcolormap 1194
sd_graphcolors 1194
sd_help 0
sd_lines 0
sd_linewrap 0
sd_prompt 0
sd_prompt_cont 0
sd_prompt_set 0
sd_psfile 0
sd_recover 0
sd_timer 0
simple_help 35
skip_alpha 7
skip_space 28
slash_commands 7
strip_prompt 0
tex2mail_output 0
texmacs_output 0
tm_end_output 0
tm_start_output 0
translate 0
update_logfile 40396
usage 0
what_cc 0
what_readline 0

Generated by: LCOV version 1.9