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 17953-c39f2e6) Lines: 1548 2513 61.6 %
Date: 2015-09-01 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 22813
GENtostr_aux 141666
GENtostr_fun 44324
GENtostr_fun_unquoted 143292
GENtostr_unquoted 7046
RgV_to_str 0
RgV_to_str_fun 9828
Str 9814
Str_fun 9828
Strchr 7
Strexpand 0
Strprintf 721
Strtex 14
VpowE 143283
_cfwrite 0
_expand_env 6885
_flush_log 401700
_fputs 892254
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 6885
_putc_log 16064664
_puts_log 892254
absrtostr 11779
absrtostr_width_frac 301
blancs 0
brute 0
bruti 788653
bruti_intern 563056
bruti_sign 941778
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 4251
delete_dirs 4082
dft_help 7
do_append 0
dopr_arg_vector 1323
dosign 5241
eng_ord 0
env_ok 600
err_flush 7
err_printf 245
error0 14
ex10 12073
externstr 0
file_getline 160141
file_input 160141
file_is_binary 0
filestate_restore 57854
filtre0 168126
fix_buffer 1764
fmtnum 4842
fmtreal 658
fmtstr 195907
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 23359
gen_output_fun 23359
get_file 0
get_fun 97274
get_lines 0
get_sigd 630
get_texvar 98
get_var 58205
gp_dlopen 7
gp_expand_path 2295
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 7
gpsystem 0
gpwritebin 0
gsprintf 14
gvsprintf 21572
history 112
in_help 1199
init_filtre 5704
init_linewrap 25585
init_unique 300
initout 2295
input_loop 136381
install0 7
is_dir_stat 35
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 40089
isfactor 196028
isnull 2847864
isnull_for_pol 1601292
isone 968346
itoc 0
itostr 346081
itostr_sign 694080
kill_file_stack 3609
killallfiles 1822
lim_lines_output 0
log10_2 12
ltoc 84
matbrute 0
matbruti 23359
monome 138810
new_buffer 4759
new_line 8120
newfile 52100
normalErrC 2170244
normalErrF 173723
normalErrS 892241
normalOutC 13894420
normalOutF 227977
normalOutS 13
numdig 694080
ok_pipe 0
os_getenv 70499
os_signal 22705
out_print0 73901
out_printf 54759
out_putc 8092683
out_puts 851578
out_term_color 245409
out_vprintf 69964
outmat 0
outpad 5472
output 0
paren 7434
pari_add_hist 57281
pari_ask_confirm 0
pari_close_files 1787
pari_close_homedir 1787
pari_default_path 2295
pari_dir_exists 300
pari_fclose 52065
pari_file_exists 0
pari_flush 169941
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 4590
pari_get_infile 22099
pari_init_files 3298
pari_init_homedir 2295
pari_is_dir 35
pari_is_file 0
pari_is_rwx 300
pari_kill_file 52100
pari_last_tmp_file 190959
pari_last_was_newline 115324
pari_nb_hist 0
pari_open_file 29945
pari_printf 14610
pari_putc 5921116
pari_puts 105479
pari_safefopen 0
pari_set_last_newline 203306
pari_sprint0 14
pari_sprintf 62852
pari_stdin_isatty 2295
pari_strdup 99359
pari_strndup 0
pari_tmp_dir 300
pari_unique_dir 300
pari_unique_filename 0
pari_unlink 6142
pari_vfprintf 0
pari_vprintf 14610
pari_vsprintf 64140
path_expand 6885
path_is_absolute 0
popinfile 3574
print 69652
print0 73166
print0_file 0
print1 3507
print_0_or_pm1 941960
print_context 1372
print_entree 0
print_errcontext 57875
print_functions_hash 0
print_precontext 1001
print_prefixed_text 63342
printf0 602
prints 490
printsep 707
printsep1 21
printtex 7
putc_lw 13833474
puts_lw 259689
quote_string 10941
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
readstr 0
real0tostr 812
real0tostr_width_frac 35
resetout 2295
set_last_newline 8941566
shift_add 1281
sm_dopr 156999
stack_sprintf 1288
stack_strcat 987
stack_strdup 1288
str_absint 336766
str_addr 0
str_alloc 350848
str_alloc0 1012
str_init 300632
str_long 99119
str_print0 14
str_putc 10518039
str_puts 1435953
str_putscut 195907
str_ulong 99119
strftime_expand 0
strlen_real 356337
switchin 7
switchin_last 7
switchout 0
switchout_get_FILE 0
term_color 532
term_get_color 307434
term_height 7
term_height_intern 7
term_width 65302
term_width_intern 65302
texVpowE 140
texe 0
texexpo 140
texi 56
texi_sign 182
texnome 140
texparen 0
times_monome 115451
times_texnome 112
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 50193
utodec 1393767
v_get_arg 1932
vsigne 0
warning0 7
wr 0
wrGEN 0
wr_check 0
wr_dec 6396
wr_lead_monome 58653
wr_lead_texnome 98
wr_long 0
wr_monome 112371
wr_texnome 70
wr_vecsmall 2032
wrexpo 143283
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 4865
zerotostr 21

Generated by: LCOV version 1.9