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 16741-1378b1c) Lines: 1506 2431 61.9 %
Date: 2014-08-17 Functions: 192 279 68.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 965 1878 51.4 %

Function Name Sort by function name Hit count Sort by hit count
GENtoGENstr 495
GENtoGENstr_nospace 0
GENtoTeXstr 0
GENtostr 0
GENtostr1 16275
GENtostr_aux 90289
GENtostr_fun 27446
GENtostr_fun_unquoted 88613
GENtostr_unquoted 4542
RgV_to_str 0
RgV_to_str_fun 7010
Str 7000
Str_fun 7010
Strchr 5
Strexpand 0
Strprintf 515
Strtex 10
VpowE 91915
_cfwrite 0
_expand_env 2586
_flush_log 101761
_fputs 33930
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 2586
_putc_log 4436589
_puts_log 33930
absrtostr 10103
absrtostr_width_frac 185
blancs 0
brute 0
bruti 409789
bruti_intern 386878
bruti_sign 505484
check_magic 0
dbg 0
dbgGEN 0
dbg_addr 0
dbg_pari_heap 0
dbg_word 0
decode_color 0
delete_buffer 2605
delete_dirs 1712
dft_help 40
do_append 0
dopr_arg_vector 915
dosign 2863
eng_ord 0
env_ok 770
err_flush 0
err_printf 0
error0 10
ex10 10283
file_getline 45526
file_input 45526
file_is_binary 0
filestate_restore 2555
filtre 8719
filtre0 53380
fix_buffer 1215
fmtnum 2583
fmtreal 430
fmtstr 27677
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 15430
gen_output_fun 15430
get_file 0
get_fun 62255
get_sigd 410
get_texvar 105
get_var 36875
gp_dlopen 40
gp_expand_path 862
gp_getenv 0
gp_read_file 0
gp_read_stream 1695
gp_read_stream_buf 2385
gp_readvec_file 0
gp_readvec_stream 15
gpinstall 40
gpwritebin 0
gsprintf 10
gvsprintf 252
history 100
in_help 420
init_filtre 3292
init_linewrap 16243
init_unique 385
initout 862
input_loop 36711
install0 40
is_dir_stat 0
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 25820
isfactor 123015
isnull 1839614
isone 639003
itoc 0
itostr 190685
itostr_sign 435303
kill_file_stack 1725
killallfiles 875
lim_lines_output 0
log10_2 8
ltoc 60
matbrute 0
matbruti 15782
monome 87660
new_buffer 2617
new_line 25
newfile 56460
normalErrC 89632
normalErrF 7655
normalErrS 33921
normalOutC 4346957
normalOutF 94106
normalOutS 9
numdig 435303
ok_pipe 0
os_getenv 2494
os_signal 9422
out_print0 46815
out_printf 2277
out_putc 199224
out_puts 123395
out_term_color 10730
out_vprintf 2835
outmat 0
outpad 2993
output 0
paren 5255
pari_add_hist 25973
pari_ask_confirm 0
pari_close_files 850
pari_close_homedir 850
pari_default_path 862
pari_dir_exists 385
pari_fclose 56435
pari_file_exists 0
pari_flush 91501
pari_fopen 0
pari_fopen_or_fail 40915
pari_fopengz 15510
pari_fprintf 0
pari_fread_chars 49715
pari_fread_longs 0
pari_get_hist 85
pari_get_histtime 15
pari_get_homedir 1724
pari_get_infile 15505
pari_init_files 862
pari_init_homedir 862
pari_is_dir 0
pari_is_file 0
pari_is_rwx 385
pari_kill_file 56460
pari_last_tmp_file 36901
pari_last_was_newline 28583
pari_nb_hist 0
pari_open_file 40915
pari_printf 408
pari_putc 108692
pari_puts 16585
pari_safefopen 0
pari_set_last_newline 36376
pari_sprint0 10
pari_sprintf 8050
pari_stdin_isatty 862
pari_strdup 19310
pari_strndup 0
pari_tmp_dir 385
pari_unique_dir 385
pari_unique_filename 0
pari_unlink 8391
pari_vfprintf 0
pari_vprintf 408
pari_vsprintf 8985
path_expand 2586
path_is_absolute 0
popinfile 1700
print 43920
print0 46685
print0_file 0
print1 2755
print_0_or_pm1 505669
print_context 155
print_entree 0
print_errcontext 2580
print_functions_hash 0
print_prefixed_text 2635
printf0 400
prints 670
printsep 115
printsep1 10
printtex 10
putc_lw 4310063
puts_lw 102630
quote_string 7770
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
real0tostr 525
real0tostr_width_frac 25
resetout 862
set_last_newline 322619
shift_add 875
sm_dopr 12987
stack_sprintf 935
stack_strcat 675
stack_strdup 935
str_absint 234880
str_addr 0
str_alloc 246723
str_alloc0 659
str_init 104846
str_long 63535
str_print0 10
str_putc 4634806
str_puts 718533
str_putscut 27677
str_ulong 63535
strftime_expand 0
strlen_real 11596
switchin 0
switchin_last 0
switchout 0
switchout_get_FILE 0
term_color 370
term_get_color 13701
term_height 5
term_height_intern 5
term_width 4205
term_width_intern 4205
texVpowE 150
texe 0
texexpo 150
texi 55
texi_sign 185
texnome 150
texparen 0
times_monome 71290
times_texnome 120
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 14846
utodec 853186
v_get_arg 1335
vsigne 0
warning0 5
wr 0
wrGEN 0
wr_check 0
wr_dec 5748
wr_lead_monome 37230
wr_lead_texnome 105
wr_long 0
wr_monome 69995
wr_texnome 75
wr_vecsmall 1510
wrexpo 91915
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 4010
zerotostr 15

Generated by: LCOV version 1.9