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 - language - es.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16937-4bd9b4e) Lines: 1513 2461 61.5 %
Date: 2014-10-24 Functions: 195 285 68.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 957 1862 51.4 %

Function Name Sort by function name Hit count Sort by hit count
GENtoGENstr 693
GENtoGENstr_nospace 0
GENtoTeXstr 0
GENtostr 0
GENtostr1 22785
GENtostr_aux 122361
GENtostr_fun 35359
GENtostr_fun_unquoted 122307
GENtostr_unquoted 6127
RgV_to_str 0
RgV_to_str_fun 9814
Str 9800
Str_fun 9814
Strchr 7
Strexpand 0
Strprintf 721
Strtex 14
VpowE 121632
_cfwrite 0
_expand_env 3603
_flush_log 147343
_fputs 213204
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 3603
_putc_log 5983176
_puts_log 213204
absrtostr 10764
absrtostr_width_frac 259
blancs 0
brute 0
bruti 503147
bruti_intern 489968
bruti_sign 627831
check_magic 0
check_secure 0
dbg 0
dbgGEN 0
dbg_addr 0
dbg_pari_heap 0
dbg_word 0
decode_color 0
delete_buffer 3639
delete_dirs 2390
dft_help 7
do_append 0
dopr_arg_vector 1281
dosign 3969
eng_ord 0
env_ok 1078
err_flush 0
err_printf 0
error0 14
ex10 11016
externstr 0
file_getline 62823
file_input 62823
file_is_binary 0
filestate_restore 6038
filtre0 71406
fix_buffer 1694
fmtnum 3577
fmtreal 602
fmtstr 47948
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 18529
gen_output_fun 18529
get_file 0
get_fun 83229
get_lines 0
get_sigd 574
get_texvar 98
get_var 49777
gp_dlopen 7
gp_expand_path 1201
gp_filter 9793
gp_getenv 0
gp_read_file 7
gp_read_stream 2373
gp_read_stream_buf 3339
gp_readvec_file 0
gp_readvec_stream 21
gpextern 0
gpinstall 7
gpsystem 0
gpwritebin 0
gsprintf 14
gvsprintf 269
history 112
in_help 595
init_filtre 4596
init_linewrap 19663
init_unique 539
initout 1201
input_loop 50265
install0 7
is_dir_stat 0
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 32025
isfactor 161154
isnull 2471288
isone 811709
itoc 0
itostr 266804
itostr_sign 571804
kill_file_stack 2413
killallfiles 1224
lim_lines_output 0
log10_2 12
ltoc 84
matbrute 0
matbruti 19023
monome 116445
new_buffer 3651
new_line 8071
newfile 79052
normalErrC 321002
normalErrF 18100
normalErrS 213193
normalOutC 5662174
normalOutF 129243
normalOutS 11
numdig 571804
ok_pipe 0
os_getenv 16714
os_signal 13151
out_print0 64686
out_printf 5452
out_putc 447122
out_puts 310767
out_term_color 37879
out_vprintf 6105
outmat 0
outpad 4151
output 0
paren 7119
pari_add_hist 32925
pari_ask_confirm 0
pari_close_files 1189
pari_close_homedir 1189
pari_default_path 1201
pari_dir_exists 539
pari_fclose 79017
pari_file_exists 0
pari_flush 123128
pari_fopen 0
pari_fopen_or_fail 57289
pari_fopengz 21714
pari_fprintf 0
pari_fread_chars 69601
pari_fread_longs 0
pari_get_hist 91
pari_get_histtime 21
pari_get_homedir 2402
pari_get_infile 21707
pari_init_files 1201
pari_init_homedir 1201
pari_is_dir 0
pari_is_file 0
pari_is_rwx 539
pari_kill_file 79052
pari_last_tmp_file 52999
pari_last_was_newline 39047
pari_nb_hist 0
pari_open_file 57289
pari_printf 450
pari_putc 124860
pari_puts 19814
pari_safefopen 0
pari_set_last_newline 52221
pari_sprint0 14
pari_sprintf 11036
pari_stdin_isatty 1201
pari_strdup 34450
pari_strndup 0
pari_tmp_dir 539
pari_unique_dir 539
pari_unique_filename 0
pari_unlink 11749
pari_vfprintf 0
pari_vprintf 450
pari_vsprintf 12310
path_expand 3603
path_is_absolute 0
popinfile 2378
print 61053
print0 64504
print0_file 0
print1 3444
print_0_or_pm1 628013
print_context 217
print_entree 0
print_errcontext 6087
print_functions_hash 0
print_prefixed_text 11505
printf0 560
prints 490
printsep 161
printsep1 14
printtex 7
putc_lw 5613863
puts_lw 138638
quote_string 10892
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
readstr 0
real0tostr 672
real0tostr_width_frac 35
resetout 1201
set_last_newline 755208
shift_add 1225
sm_dopr 19965
stack_sprintf 1274
stack_strcat 952
stack_strdup 1274
str_absint 294684
str_addr 0
str_alloc 307681
str_alloc0 822
str_init 144055
str_long 83251
str_print0 14
str_putc 6122543
str_puts 920081
str_putscut 47948
str_ulong 83251
strftime_expand 0
strlen_real 144466
switchin 7
switchin_last 7
switchout 0
switchout_get_FILE 0
term_color 518
term_get_color 44475
term_height 7
term_height_intern 7
term_width 13227
term_width_intern 13227
texVpowE 140
texe 0
texexpo 140
texi 56
texi_sign 182
texnome 140
texparen 0
times_monome 94892
times_texnome 112
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 20619
utodec 1142264
v_get_arg 1869
vsigne 0
warning0 7
wr 0
wrGEN 0
wr_check 0
wr_dec 5780
wr_lead_monome 50260
wr_lead_texnome 98
wr_long 0
wr_monome 92652
wr_texnome 70
wr_vecsmall 1890
wrexpo 121632
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 4564
zerotostr 21

Generated by: LCOV version 1.9