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 - es.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 1486 2524 58.9 %
Date: 2017-03-30 05:32:39 Functions: 197 291 67.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GENtoGENstr 594
GENtoGENstr_nospace 0
GENtoTeXstr 0
GENtostr 0
GENtostr_fun 594
GENtostr_raw 1920
GENtostr_unquoted 12154
RgV_to_str 8694
Str 8682
Str_fun 8694
Strchr 6
Strexpand 0
Strprintf 618
Strtex 12
VpowE 128454
_cfwrite 0
_expand_env 3672
_flush_log 143860
_fputs 207867
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 3672
_putc_log 5672549
_puts_log 207867
absrtostr 13674
absrtostr_width_frac 11554
blancs 0
brute 0
bruti 627224
bruti_intern 523471
bruti_sign 743918
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 3720
dft_help 0
do_append 0
dopr_arg_vector 1062
dosign 57002
eng_ord 0
env_ok 540
err_flush 6
err_printf 210
error0 12
ex10 25222
externstr 0
file_getline 98414
file_input 98414
file_is_binary 0
filestate_restore 6996
filtre0 105830
fix_buffer 1740
fmtnum 45650
fmtreal 11776
fmtstr 46286
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 25904
gen_output_fun 25904
get_file 0
get_fun 118556
get_lines 0
get_sigd 11752
get_texvar 84
get_var 53166
gp_dlopen 0
gp_embedded 0
gp_embedded_init 0
gp_filter 8664
gp_getenv 0
gp_read_file 6
gp_read_from_input 0
gp_read_str_multiline 0
gp_read_stream 2412
gp_read_stream_buf 3516
gp_readvec_file 0
gp_readvec_stream 24
gpextern 0
gpinstall 0
gpsystem 0
gpwritebin 0
gsprintf 12
gvsprintf 206
history 96
in_help 1274
init_filtre 4800
init_linewrap 27044
init_unique 270
initout 1225
input_loop 68194
install0 0
is_dir_stat 60
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 27642
isfactor 147492
isnull 2377010
isnull_for_pol 1375962
isone 852139
itoc 0
itostr 331482
itostr_sign 652223
kill_file_stack 128268
killallfiles 42
lim_lines_output 0
log10_2 12
ltoc 72
matbrute 0
matbruti 25910
monome 111978
new_buffer 3720
new_line 6924
newfile 47808
normalErrC 354200
normalErrF 21092
normalErrS 207850
normalOutC 5318349
normalOutF 122768
normalOutS 17
numdig 652223
ok_pipe 0
os_getenv 16533
out_print0 83946
out_printf 6412
out_putc 486890
out_puts 348927
out_term_color 40006
out_vprintf 7510
outmat 0
outpad 57396
output 0
paren 7152
pari_add_hist 46444
pari_ask_confirm 0
pari_close_files 1224
pari_close_homedir 1224
pari_dir_exists 270
pari_fclose 47748
pari_file_exists 0
pari_flush 115598
pari_fopen 0
pari_fopen_or_fail 28422
pari_fopengz 19320
pari_fprintf 0
pari_fread_chars 60798
pari_fread_longs 0
pari_get_hist 78
pari_get_histtime 18
pari_get_homedir 2448
pari_get_infile 19314
pari_init_files 63722
pari_init_homedir 1225
pari_is_dir 60
pari_is_file 0
pari_is_rwx 270
pari_kill_file 47808
pari_last_tmp_file 71882
pari_last_was_newline 53620
pari_nb_hist 0
pari_open_file 28422
pari_printf 500
pari_putc 131436
pari_puts 26883
pari_safefopen 0
pari_set_last_newline 68632
pari_sprint0 12
pari_sprintf 10886
pari_stdin_isatty 1225
pari_strdup 23849
pari_strndup 0
pari_thread_close_files 64167
pari_tmp_dir 270
pari_unique_dir 270
pari_unique_filename 0
pari_unlink 5778
pari_vfprintf 0
pari_vprintf 500
pari_vsprintf 19748
path_expand 3672
path_is_absolute 0
popinfile 65428
print 72744
print0 83316
print0_file 0
print1 10560
print_0_or_pm1 744074
print_context 1926
print_entree 0
print_errcontext 6986
print_functions_hash 0
print_precontext 1356
print_prefixed_text 11672
printf0 444
printp 6
prints 420
printsep 606
printsep1 18
printtex 6
putc_lw 5278423
puts_lw 185502
quote_string 8916
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
readstr 0
real0tostr 786
real0tostr_width_frac 11208
resetout 1225
set_last_newline 833507
shift_add 12136
sm_dopr 20810
stack_GENtostr_fun 136270
stack_GENtostr_fun_unquoted 167176
stack_sprintf 1146
stack_strcat 1020
stack_strdup 1146
str_absint 307507
str_addr 0
str_alloc 326119
str_alloc0 936
str_arg_vprintf 45354
str_init 168286
str_long 94470
str_print0 8706
str_printf 24544
str_putc 6161117
str_puts 1134531
str_putscut 46286
str_ulong 94470
strftime_expand 0
string_gets 0
strlen_real 132052
switchin 6
switchin_last 6
switchout 0
switchout_get_FILE 0
term_color 552
term_get_color 47588
term_height 6
term_height_intern 6
term_width 13537
term_width_intern 13537
texVpowE 120
texe 0
texexpo 120
texi 48
texi_sign 156
texnome 120
texparen 0
times_monome 91032
times_texnome 96
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 28686
utodec 1250173
v_get_arg 1404
vsigne 0
warning0 6
wr 0
wrGEN 0
wr_check 0
wr_dec 7612
wr_lead_monome 53490
wr_lead_texnome 84
wr_long 0
wr_monome 86916
wr_texnome 60
wr_vecsmall 2876
wrexpo 128454
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 16824
zerotostr 18

Generated by: LCOV version 1.11