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 16741-1378b1c) Lines: 494 1294 38.2 %
Date: 2014-08-17 Functions: 50 125 40.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 271 942 28.8 %

Function Name Sort by function name Hit count Sort by hit count
_cat 0
aide 90
aide0 90
alarm0 28493
atocolor 0
brace_color 0
break_loop 35
break_loop_prompt 35
center 0
check_meta 33461
check_secure 0
chron 50
closure_alarmer 0
color_prompt 0
commands 5
community 0
compare_str 120
convert_time 0
cut_trailing_garbage 70
dbg_down 0
dbg_err 5
dbg_up 5
default_help 15
digit_help 5
do_prompt 8387
echo_and_log 28921
err_gprc 0
escape 241
expand_prompt 0
extern0 0
external_help 0
externstr 0
fgets_texmacs 0
filter_quotes 0
filtered_buffer 907
free_cmd 0
free_trivial_stack 0
gentypes 5
get_home 0
get_line_from_file 34326
get_lines 0
get_preproc_value 0
gp_alarm 0
gp_alarm_fun 0
gp_alarm_handler 0
gp_ask_confirm 0
gp_err_recover 80
gp_format_time 0
gp_handle_exception 2450
gp_head 0
gp_initrc 0
gp_main_loop 862
gp_output 15390
gp_pre_recover 2445
gp_quit 850
gp_read_line 34316
gp_sigint_fun 0
gprc_chk 0
gprc_get 0
handle_texmacs_command 0
has_ext_help 5
hit_return 0
init_help 862
init_trivial_stack 0
input0 10
is_interactive 42187
is_silent 21431
kill_buffers_upto 3370
kill_buffers_upto_including 0
main 862
matchQ 0
member_commands 5
menu_commands 5
next_expr 0
nl_read 0
normal_output 0
ok_external_help 0
pari_breakpoint 5
parse_key_val 0
parse_texmacs_command 0
pop_buffer 895
prettyp_init 0
prettyp_wait 0
print_fun_list 5
print_shortversion 0
print_version 0
read_arg 0
read_arg_equal 0
read_dot_uint 0
read_main 0
read_opt 862
read_uint 0
read_version 0
readstr 0
readstring 0
record_default 0
reset_ctrlc 28580
sd_breakloop 5
sd_echo 123
sd_graphcolormap 862
sd_graphcolors 862
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 25
skip_alpha 5
skip_space 20
slash_commands 5
strip_prompt 0
system0 0
tex2mail_output 0
texmacs_output 0
tm_end_output 0
tm_start_output 0
translate 0
update_logfile 28921
usage 0
what_cc 0
what_readline 0

Generated by: LCOV version 1.9