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 21947-4fc3047) Lines: 1805 2539 71.1 %
Date: 2018-02-24 06:16:21 Functions: 248 293 84.6 %
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 7
GENtostr_fun 700
GENtostr_raw 2296
GENtostr_unquoted 18468
RgV_to_str 10845
Str 10819
Str_fun 10833
Strchr 21
Strexpand 12
Strprintf 721
Strtex 14
VpowE 176509
_cfwrite 8
_expand_env 4808
_flush_log 183359
_fputs 247969
_fwrite 80
_initout 0
_lfwrite 72
_path_expand 4808
_putc_log 7503067
_puts_log 247969
absrtostr 19733
absrtostr_width_frac 40277
blancs 0
brute 0
bruti 878376
bruti_intern 728892
bruti_sign 1048504
check_magic 8
check_secure 32
dbg 0
dbgGEN 0
dbg_addr 0
dbg_pari_heap 0
dbg_word 0
decode_color 0
delete_buffer 4786
dft_help 8
do_append 0
dopr_arg_vector 1239
dosign 75680
env_ok 680
err_flush 7
err_printf 253
error0 14
ex10 60003
externstr 4
file_getline 131271
file_input 131243
file_is_binary 12
filestate_restore 8711
filtre0 140427
fix_buffer 2058
fmtnum 35894
fmtreal 40536
fmtstr 62813
forpath_init 16
forpath_next 16
fputGEN_pariout 0
gen_output 36629
gen_output_fun 36629
get_file 0
get_fun 152396
get_lines 8
get_sigd 40508
get_texvar 98
get_var 78327
gp_dlopen 8
gp_embedded 0
gp_embedded_init 0
gp_filter 10773
gp_getenv 8
gp_read_file 15
gp_read_from_input 0
gp_read_str_multiline 0
gp_read_stream 3119
gp_read_stream_buf 4419
gp_readvec_file 4
gp_readvec_stream 32
gpextern 4
gpinstall 8
gpsystem 24
gpwritebin 8
gsprintf 1603
gvsprintf 1728
history 116
in_help 1707
init_filtre 6046
init_linewrap 38069
init_unique 340
initout 1559
input_loop 93073
install0 8
is_dir_stat 86
is_long_ok 16
is_magic_ok 75
is_sizeoflong_ok 8
isdenom 44625
isfactor 219447
isnull 3091850
isnull_for_pol 1650562
isone 1202816
itoc 7
itostr 700706
itostr_sign 1181892
kill_file_stack 181142
killallfiles 49
lim_lines_output 0
log10_2 12
ltoc 1876
matbrute 0
matbruti 36643
monome 160934
new_buffer 4786
new_line 8009
newfile 58521
normalErrC 432964
normalErrF 26164
normalErrS 247926
normalOutC 7070103
normalOutF 157195
normalOutS 43
numdig 1181892
ok_pipe 0
os_getenv 20897
out_print0 104807
out_printf 7858
out_putc 592447
out_puts 430386
out_term_color 48600
out_vprintf 9211
outmat 0
outpad 76395
output 0
paren 13510
pari_add_hist 64846
pari_ask_confirm 0
pari_close_files 1557
pari_close_homedir 1557
pari_dir_exists 340
pari_fclose 58451
pari_file_exists 0
pari_flush 148295
pari_fopen 0
pari_fopen_or_fail 35579
pari_fopengz 22897
pari_fprintf 0
pari_fread_chars 70939
pari_fread_longs 56
pari_get_hist 91
pari_get_histtime 25
pari_get_homedir 3122
pari_get_infile 22850
pari_init_files 90077
pari_init_homedir 1559
pari_is_dir 86
pari_is_file 94
pari_is_rwx 340
pari_kill_file 58521
pari_last_tmp_file 97670
pari_last_was_newline 73753
pari_nb_hist 0
pari_open_file 35579
pari_printf 599
pari_putc 157988
pari_puts 37722
pari_safefopen 0
pari_set_last_newline 93291
pari_sprint0 14
pari_sprintf 13614
pari_stdin_isatty 1559
pari_strdup 30006
pari_strndup 0
pari_thread_close_files 90593
pari_tmp_dir 340
pari_unique_dir 340
pari_unique_filename 0
pari_unique_filename_suffix 0
pari_unlink 7220
pari_vfprintf 0
pari_vprintf 599
pari_vsprintf 25947
path_expand 4808
path_is_absolute 16
popinfile 92190
print 86782
print0 104016
print0_file 94
print1 17220
print_0_or_pm1 1048698
print_context 2296
print_entree 0
print_errcontext 8658
print_functions_hash 0
print_precontext 1631
print_prefixed_text 14059
printf0 518
printp 7
prints 490
printsep 763
printsep1 21
printtex 7
putc_lw 7016041
puts_lw 236679
quote_string 11597
rdGEN 12
rd_long 44
rdstr 8
readbin 8
readobj 20
readstr 4
real0tostr 965
real0tostr_width_frac 155
resetout 1559
set_last_newline 1020159
shift_add 40963
sm_dopr 27186
stack_GENtostr_fun 175334
stack_GENtostr_fun_unquoted 213076
stack_sprintf 1394
stack_strcat 1197
stack_strdup 1394
str_absint 422296
str_addr 0
str_alloc 447797
str_alloc0 1438
str_arg_vprintf 77009
str_init 217297
str_long 126753
str_print0 10953
str_printf 49823
str_putc 8783731
str_puts 1557833
str_putscut 62813
str_ulong 126753
strftime_expand 0
string_gets 0
strip_last_nl 0
strlen_real 155073
switchin 23
switchin_last 7
switchout 0
switchout_get_FILE 94
term_color 660
term_get_color 58072
term_height 7
term_height_intern 7
term_width 17072
term_width_intern 17072
texVpowE 140
texe 0
texexpo 140
texi 60
texi_sign 194
texnome 140
texparen 0
times_monome 131327
times_texnome 112
try_dlopen 0
try_name 16
try_open 16
try_pipe 8
type_name 33959
uordinal 0
utodec 2304312
v_get_arg 1638
vsigne 0
warning0 7
wr 94
wrGEN 12
wr_check 102
wr_dec 50422
wr_lead_monome 78992
wr_lead_texnome 98
wr_long 60
wr_monome 124299
wr_texnome 70
wr_vecsmall 4437
wrexpo 176509
write0 82
write1 8
writeGEN 4
write_magic 8
writebin 8
writenamedGEN 8
writetex 4
wrstr 8
zeros 8616
zerotostr 35

Generated by: LCOV version 1.11