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-bordeaux.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 - language - gplib.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21342-bb34613) Lines: 340 884 38.5 %
Date: 2017-11-18 06:21:14 Functions: 46 90 51.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_cat 0
atocolor 0
brace_color 0
color_prompt 0
community 0
err_gprc 0
external_help 0
filter_quotes 0
get_home 0
get_preproc_value 0
gp_format_time 0
gp_initrc 0
gp_load_gprc 0
gp_sigint_fun 0
gphelp_keyword_list 0
gprc_chk 0
gprc_get 0
kill_buffers_upto_including 0
next_expr 0
nl_read 0
ok_external_help 0
pari_hit_return 0
parse_key_val 0
prettyp_init 0
prettyp_wait 0
read_dot_uint 0
read_uint 0
read_version 0
readline_prompt_color 0
sd_graphcolormap 0
sd_graphcolors 0
sd_help 0
sd_histfile 0
sd_lines 0
sd_linewrap 0
sd_prompt 0
sd_prompt_cont 0
sd_prompt_set 0
sd_psfile 0
sd_readline 0
sd_recover 0
sd_timer 0
strip_prompt 0
tex2mail_output 0
pari_print_version 2
what_cc 2
what_readline 2
convert_time 6
gp_alarm_fun 6
cmp_epname 7
commands 7
digit_help 7
gentypes 7
gp_input 7
member_commands 7
menu_commands 7
pari_skip_alpha 7
print_all_user_fun 7
print_fun_list 7
sd_breakloop 7
slash_commands 7
gp_alarm_handler 8
has_ext_help 9
pari_center 10
default_help 21
pari_skip_space 28
simple_help 39
gp_allocatemem 84
gp_alarm 112
cut_trailing_garbage 113
closure_alarmer 118
gp_help 141
help 141
chron 151
compare_str 168
sd_echo 186
escape 330
pari_init_buffers 1538
filtered_buffer 1606
pop_buffer 1606
update_logfile 6215
gp_format_prompt 6831
gp_handle_exception 8154
kill_buffers_upto 9939
pari_alarm 70639
gp_echo_and_log 71060
gp_read_line 85056
get_line_from_file 85063
gp_meta 87907
is_interactive 156116

Generated by: LCOV version 1.11