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 17400-bace02f) Lines: 1537 2493 61.7 %
Date: 2015-01-25 Functions: 201 287 70.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 958 1876 51.1 %

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 129228
GENtostr_fun 37508
GENtostr_fun_unquoted 135271
GENtostr_unquoted 6288
RgV_to_str 0
RgV_to_str_fun 9821
Str 9807
Str_fun 9821
Strchr 7
Strexpand 0
Strprintf 721
Strtex 14
VpowE 140854
_cfwrite 0
_expand_env 3729
_flush_log 160720
_fputs 219497
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 3729
_putc_log 7118746
_puts_log 219497
absrtostr 11828
absrtostr_width_frac 273
blancs 0
brute 0
bruti 767271
bruti_intern 543355
bruti_sign 913382
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 3695
delete_dirs 2474
dft_help 7
do_append 0
dopr_arg_vector 1302
dosign 4165
eng_ord 0
env_ok 588
err_flush 7
err_printf 245
error0 14
ex10 12094
externstr 0
file_getline 77257
file_input 77257
file_is_binary 0
filestate_restore 6451
filtre0 85798
fix_buffer 1757
fmtnum 3780
fmtreal 616
fmtstr 49607
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 20349
gen_output_fun 20349
get_file 0
get_fun 89928
get_lines 0
get_sigd 588
get_texvar 98
get_var 56574
gp_dlopen 7
gp_expand_path 1243
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 269
history 112
in_help 973
init_filtre 4652
init_linewrap 21525
init_unique 294
initout 1243
input_loop 56236
install0 7
is_dir_stat 35
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 37079
isfactor 186900
isnull 2805881
isnull_for_pol 1598156
isone 929839
itoc 0
itostr 181364
itostr_sign 517400
kill_file_stack 2497
killallfiles 1266
lim_lines_output 0
log10_2 12
ltoc 84
matbrute 0
matbruti 20843
monome 137375
new_buffer 3707
new_line 8099
newfile 51488
normalErrC 336087
normalErrF 19444
normalErrS 219486
normalOutC 6782659
normalOutF 141276
normalOutS 11
numdig 517400
ok_pipe 0
os_getenv 16805
os_signal 13613
out_print0 69565
out_printf 5907
out_putc 468906
out_puts 329576
out_term_color 39615
out_vprintf 6882
outmat 0
outpad 4368
output 0
paren 7294
pari_add_hist 37349
pari_ask_confirm 0
pari_close_files 1231
pari_close_homedir 1231
pari_default_path 1243
pari_dir_exists 294
pari_fclose 51453
pari_file_exists 0
pari_flush 134692
pari_fopen 0
pari_fopen_or_fail 29333
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 2486
pari_get_infile 22099
pari_init_files 1243
pari_init_homedir 1243
pari_is_dir 35
pari_is_file 0
pari_is_rwx 294
pari_kill_file 51488
pari_last_tmp_file 59383
pari_last_was_newline 43940
pari_nb_hist 0
pari_open_file 29333
pari_printf 457
pari_putc 131559
pari_puts 21655
pari_safefopen 0
pari_set_last_newline 58136
pari_sprint0 14
pari_sprintf 11477
pari_stdin_isatty 1243
pari_strdup 35353
pari_strndup 0
pari_tmp_dir 294
pari_unique_dir 294
pari_unique_filename 0
pari_unlink 6028
pari_vfprintf 0
pari_vprintf 457
pari_vsprintf 12751
path_expand 3729
path_is_absolute 0
popinfile 2462
print 65932
print0 69383
print0_file 0
print1 3444
print_0_or_pm1 913564
print_context 1113
print_entree 0
print_errcontext 6486
print_functions_hash 0
print_precontext 896
print_prefixed_text 11904
printf0 581
prints 490
printsep 161
printsep1 14
printtex 7
putc_lw 6721384
puts_lw 153289
quote_string 10941
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
readstr 0
real0tostr 777
real0tostr_width_frac 35
resetout 1243
set_last_newline 795801
shift_add 1239
sm_dopr 21204
stack_sprintf 1274
stack_strcat 987
stack_strdup 1274
str_absint 324747
str_addr 0
str_alloc 338815
str_alloc0 1033
str_init 152259
str_long 97839
str_print0 14
str_putc 7191144
str_puts 1236318
str_putscut 49607
str_ulong 97839
strftime_expand 0
strlen_real 146503
switchin 7
switchin_last 7
switchout 0
switchout_get_FILE 0
term_color 518
term_get_color 46645
term_height 7
term_height_intern 7
term_width 13724
term_width_intern 13724
texVpowE 140
texe 0
texexpo 140
texi 56
texi_sign 182
texnome 140
texparen 0
times_monome 111209
times_texnome 112
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 24525
utodec 1008664
v_get_arg 1911
vsigne 0
warning0 7
wr 0
wrGEN 0
wr_check 0
wr_dec 6228
wr_lead_monome 57057
wr_lead_texnome 98
wr_long 0
wr_monome 110327
wr_texnome 70
wr_vecsmall 2009
wrexpo 140854
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 5089
zerotostr 21

Generated by: LCOV version 1.9