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 20296-0a10b35) Lines: 1480 2523 58.7 %
Date: 2017-02-26 05:50:47 Functions: 196 291 67.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GENtoGENstr 693
GENtoGENstr_nospace 0
GENtoTeXstr 0
GENtostr 0
GENtostr_fun 693
GENtostr_raw 2240
GENtostr_unquoted 22690
RgV_to_str 10143
Str 10129
Str_fun 10143
Strchr 7
Strexpand 0
Strprintf 721
Strtex 14
VpowE 162743
_cfwrite 0
_expand_env 4257
_flush_log 196118
_fputs 354671
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 4257
_putc_log 7710621
_puts_log 354671
absrtostr 15475
absrtostr_width_frac 371
blancs 0
brute 0
bruti 696353
bruti_intern 610348
bruti_sign 854490
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 4839
dft_help 0
do_append 0
dopr_arg_vector 1239
dosign 4925
eng_ord 0
env_ok 628
err_flush 7
err_printf 245
error0 14
ex10 15839
externstr 0
file_getline 117080
file_input 117080
file_is_binary 0
filestate_restore 16680
filtre0 125233
fix_buffer 1988
fmtnum 4792
fmtreal 630
fmtstr 82046
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 29817
gen_output_fun 29817
get_file 0
get_fun 123743
get_lines 0
get_sigd 602
get_texvar 98
get_var 63700
gp_dlopen 0
gp_embedded 0
gp_embedded_init 0
gp_filter 10108
gp_getenv 0
gp_read_file 7
gp_read_from_input 0
gp_read_str_multiline 0
gp_read_stream 2814
gp_read_stream_buf 4102
gp_readvec_file 0
gp_readvec_stream 28
gpextern 0
gpinstall 0
gpsystem 0
gpwritebin 0
gsprintf 14
gvsprintf 2706
history 112
in_help 1437
init_filtre 5591
init_linewrap 31139
init_unique 314
initout 1420
input_loop 89575
install0 0
is_dir_stat 70
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 41349
isfactor 203287
isnull 2798355
isnull_for_pol 1619744
isone 1033502
itoc 0
itostr 359242
itostr_sign 737390
kill_file_stack 129275
killallfiles 49
lim_lines_output 0
log10_2 12
ltoc 84
matbrute 0
matbruti 29824
monome 143605
new_buffer 4331
new_line 8078
newfile 55678
normalErrC 714932
normalErrF 50138
normalErrS 354653
normalOutC 6995689
normalOutF 145980
normalOutS 18
numdig 737390
ok_pipe 0
os_getenv 27762
out_print0 83769
out_printf 14447
out_putc 881244
out_puts 455428
out_term_color 80713
out_vprintf 15762
outmat 0
outpad 5387
output 0
paren 8344
pari_add_hist 54345
pari_ask_confirm 0
pari_close_files 1927
pari_close_homedir 1927
pari_dir_exists 314
pari_fclose 55608
pari_file_exists 0
pari_flush 129104
pari_fopen 0
pari_fopen_or_fail 33061
pari_fopengz 22540
pari_fprintf 0
pari_fread_chars 70931
pari_fread_longs 0
pari_get_hist 91
pari_get_histtime 21
pari_get_homedir 2838
pari_get_infile 22533
pari_init_files 63831
pari_init_homedir 1420
pari_is_dir 70
pari_is_file 0
pari_is_rwx 314
pari_kill_file 55678
pari_last_tmp_file 102405
pari_last_was_newline 71228
pari_nb_hist 0
pari_open_file 33061
pari_printf 615
pari_putc 164849
pari_puts 31225
pari_safefopen 0
pari_set_last_newline 98399
pari_sprint0 14
pari_sprintf 21209
pari_stdin_isatty 1420
pari_strdup 36223
pari_strndup 0
pari_thread_close_files 64685
pari_tmp_dir 314
pari_unique_dir 314
pari_unique_filename 0
pari_unlink 6722
pari_vfprintf 0
pari_vprintf 615
pari_vsprintf 41014
path_expand 4257
path_is_absolute 0
popinfile 66662
print 77700
print0 83034
print0_file 0
print1 5320
print_0_or_pm1 854672
print_context 2247
print_entree 0
print_errcontext 16659
print_functions_hash 0
print_precontext 1582
print_prefixed_text 22126
printf0 518
printp 7
prints 490
printsep 707
printsep1 21
printtex 7
putc_lw 6937375
puts_lw 195154
quote_string 10402
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
readstr 0
real0tostr 917
real0tostr_width_frac 35
resetout 1420
set_last_newline 1333977
shift_add 1043
sm_dopr 42253
stack_GENtostr_fun 147856
stack_GENtostr_fun_unquoted 182389
stack_sprintf 1337
stack_strcat 1197
stack_strdup 1337
str_absint 363254
str_addr 0
str_alloc 384483
str_alloc0 1133
str_arg_vprintf 42253
str_init 203108
str_long 121806
str_print0 10157
str_printf 0
str_putc 7927494
str_puts 1308749
str_putscut 82046
str_ulong 121806
strftime_expand 0
string_gets 0
strlen_real 189630
switchin 7
switchin_last 7
switchout 0
switchout_get_FILE 0
term_color 644
term_get_color 99602
term_height 7
term_height_intern 7
term_width 24287
term_width_intern 24287
texVpowE 140
texe 0
texexpo 140
texi 56
texi_sign 182
texnome 140
texparen 0
times_monome 119210
times_texnome 112
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 35417
utodec 1479404
v_get_arg 1638
vsigne 0
warning0 7
wr 0
wrGEN 0
wr_check 0
wr_dec 8496
wr_lead_monome 64050
wr_lead_texnome 98
wr_long 0
wr_monome 113939
wr_texnome 70
wr_vecsmall 3355
wrexpo 162743
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 6426
zerotostr 21

Generated by: LCOV version 1.11