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 17727-c4b959b) Lines: 1548 2513 61.6 %
Date: 2015-04-18 Functions: 201 287 70.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 962 1886 51.0 %

Function Name Sort by function name Hit count Sort by hit count
GENtoGENstr 693
GENtoGENstr_nospace 0
GENtoTeXstr 0
GENtostr 0
GENtostr1 22799
GENtostr_aux 139976
GENtostr_fun 43600
GENtostr_fun_unquoted 141899
GENtostr_unquoted 6934
RgV_to_str 0
RgV_to_str_fun 9821
Str 9807
Str_fun 9821
Strchr 7
Strexpand 0
Strprintf 721
Strtex 14
VpowE 142149
_cfwrite 0
_expand_env 6801
_flush_log 400213
_fputs 891120
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 6801
_putc_log 16015806
_puts_log 891120
absrtostr 11513
absrtostr_width_frac 273
blancs 0
brute 0
bruti 781531
bruti_intern 557671
bruti_sign 933494
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 4223
delete_dirs 4026
dft_help 14
do_append 0
dopr_arg_vector 1309
dosign 5178
eng_ord 0
env_ok 600
err_flush 7
err_printf 245
error0 14
ex10 11779
externstr 0
file_getline 157635
file_input 157635
file_is_binary 0
filestate_restore 57770
filtre0 165648
fix_buffer 1757
fmtnum 4793
fmtreal 616
fmtstr 195718
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 22677
gen_output_fun 22677
get_file 0
get_fun 95983
get_lines 0
get_sigd 588
get_texvar 98
get_var 57673
gp_dlopen 14
gp_expand_path 2267
gp_filter 9793
gp_getenv 0
gp_read_file 7
gp_read_stream 2387
gp_read_stream_buf 3353
gp_readvec_file 0
gp_readvec_stream 21
gpextern 0
gpinstall 14
gpsystem 0
gpwritebin 0
gsprintf 14
gvsprintf 21565
history 112
in_help 1178
init_filtre 5676
init_linewrap 24875
init_unique 300
initout 2267
input_loop 134736
install0 14
is_dir_stat 35
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 39627
isfactor 194292
isnull 2835429
isnull_for_pol 1599850
isone 959349
itoc 0
itostr 346018
itostr_sign 690578
kill_file_stack 3553
killallfiles 1794
lim_lines_output 0
log10_2 12
ltoc 84
matbrute 0
matbruti 24788
monome 137949
new_buffer 4731
new_line 8127
newfile 52100
normalErrC 2167983
normalErrF 173457
normalErrS 891107
normalOutC 13847823
normalOutF 226756
normalOutS 13
numdig 690578
ok_pipe 0
os_getenv 70387
os_signal 22397
out_print0 73292
out_printf 54696
out_putc 8089194
out_puts 848887
out_term_color 245101
out_vprintf 69838
outmat 0
outpad 5381
output 0
paren 7322
pari_add_hist 56158
pari_ask_confirm 0
pari_close_files 1759
pari_close_homedir 1759
pari_default_path 2267
pari_dir_exists 300
pari_fclose 52065
pari_file_exists 0
pari_flush 168825
pari_fopen 0
pari_fopen_or_fail 29945
pari_fopengz 22106
pari_fprintf 0
pari_fread_chars 70931
pari_fread_longs 0
pari_get_hist 91
pari_get_histtime 21
pari_get_homedir 4534
pari_get_infile 22099
pari_init_files 3109
pari_init_homedir 2267
pari_is_dir 35
pari_is_file 0
pari_is_rwx 300
pari_kill_file 52100
pari_last_tmp_file 189202
pari_last_was_newline 114096
pari_nb_hist 0
pari_open_file 29945
pari_printf 14596
pari_putc 5919832
pari_puts 104783
pari_safefopen 0
pari_set_last_newline 201871
pari_sprint0 14
pari_sprintf 62796
pari_stdin_isatty 2267
pari_strdup 98981
pari_strndup 0
pari_tmp_dir 300
pari_unique_dir 300
pari_unique_filename 0
pari_unlink 6142
pari_vfprintf 0
pari_vprintf 14596
pari_vsprintf 64084
path_expand 6801
path_is_absolute 0
popinfile 3518
print 69057
print0 72571
print0_file 0
print1 3507
print_0_or_pm1 933676
print_context 1127
print_entree 0
print_errcontext 57819
print_functions_hash 0
print_precontext 896
print_prefixed_text 63293
printf0 588
prints 490
printsep 700
printsep1 14
printtex 7
putc_lw 13787066
puts_lw 257768
quote_string 10941
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
readstr 0
real0tostr 784
real0tostr_width_frac 35
resetout 2267
set_last_newline 8935386
shift_add 1239
sm_dopr 156796
stack_sprintf 1288
stack_strcat 987
stack_strdup 1288
str_absint 333593
str_addr 0
str_alloc 347360
str_alloc0 1012
str_init 298732
str_long 98489
str_print0 14
str_putc 10467868
str_puts 1425584
str_putscut 195718
str_ulong 98489
strftime_expand 0
strlen_real 356057
switchin 7
switchin_last 7
switchout 0
switchout_get_FILE 0
term_color 546
term_get_color 307049
term_height 7
term_height_intern 7
term_width 65246
term_width_intern 65246
texVpowE 140
texe 0
texexpo 140
texi 56
texi_sign 182
texnome 140
texparen 0
times_monome 114646
times_texnome 112
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 50158
utodec 1388613
v_get_arg 1918
vsigne 0
warning0 7
wr 0
wrGEN 0
wr_check 0
wr_dec 6151
wr_lead_monome 58142
wr_lead_texnome 98
wr_long 0
wr_monome 111783
wr_texnome 70
wr_vecsmall 2032
wrexpo 142149
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 4844
zerotostr 21

Generated by: LCOV version 1.9