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 to exceed 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.12.0 lcov report (development 23171-a5c0ed393) Lines: 429 877 48.9 %
Date: 2018-10-20 05:38:07 Functions: 57 93 61.3 %
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_name 0
gp_format_time 0
gp_load_gprc 0
gp_sigint_fun 0
gphelp_keyword_list 0
kill_buffers_upto_including 0
nl_read 0
ok_external_help 0
pari_hit_return 0
pari_skip_alpha 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_linewrap 0
sd_prompt 0
sd_prompt_cont 0
sd_prompt_set 0
sd_psfile 0
sd_readline 0
sd_recover 0
strip_prompt 0
tex2mail_output 0
convert_time 2
gp_alarm_fun 2
pari_community 2
sd_timer 2
get_home 4
get_preproc_value 4
gp_alarm_handler 4
gp_initrc 4
gprc_get 4
sd_histfile 4
pari_print_version 6
sd_lines 6
what_cc 6
what_readline 6
cmp_epname 7
commands 7
digit_help 7
gentypes 7
gp_input 7
member_commands 7
menu_commands 7
print_all_user_fun 7
print_fun_list 7
sd_breakloop 7
slash_commands 7
gprc_chk 12
next_expr 12
has_ext_help 13
parse_key_val 18
default_help 21
pari_skip_space 28
pari_center 32
gp_alarm 34
sd_plothsizes 35
simple_help 35
closure_alarmer 36
gp_allocatemem 84
cut_trailing_garbage 105
gp_help 147
help 147
sd_echo 186
compare_str 199
chron 294
escape 337
pari_init_buffers 1552
filtered_buffer 1616
pop_buffer 1616
update_logfile 6411
gp_format_prompt 7104
gp_handle_exception 9036
kill_buffers_upto 10848
pari_alarm 80044
gp_echo_and_log 80630
gp_read_line 96044
get_line_from_file 96215
gp_meta 99262
is_interactive 176674

Generated by: LCOV version 1.13