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 16746-c2cb716) Lines: 1506 2431 61.9 %
Date: 2014-08-31 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 90364
GENtostr_fun 27521
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 92190
_cfwrite 0
_expand_env 2586
_flush_log 101926
_fputs 33995
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 2586
_putc_log 4439984
_puts_log 33995
absrtostr 10103
absrtostr_width_frac 185
blancs 0
brute 0
bruti 410124
bruti_intern 387076
bruti_sign 505754
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 45601
file_input 45601
file_is_binary 0
filestate_restore 2560
filtre 8719
filtre0 53455
fix_buffer 1215
fmtnum 2583
fmtreal 430
fmtstr 27702
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 15500
gen_output_fun 15500
get_file 0
get_fun 62325
get_sigd 410
get_texvar 105
get_var 36945
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 16313
init_unique 385
initout 862
input_loop 36786
install0 40
is_dir_stat 0
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 25820
isfactor 122950
isnull 1838939
isone 639286
itoc 0
itostr 190685
itostr_sign 435366
kill_file_stack 1725
killallfiles 875
lim_lines_output 0
log10_2 8
ltoc 60
matbrute 0
matbruti 15852
monome 87735
new_buffer 2617
new_line 25
newfile 56460
normalErrC 89772
normalErrF 7670
normalErrS 33986
normalOutC 4350212
normalOutF 94256
normalOutS 9
numdig 435366
ok_pipe 0
os_getenv 2494
os_signal 9422
out_print0 46815
out_printf 2282
out_putc 199434
out_puts 123505
out_term_color 10750
out_vprintf 2840
outmat 0
outpad 2993
output 0
paren 5385
pari_add_hist 26043
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 91646
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 36981
pari_last_was_newline 28658
pari_nb_hist 0
pari_open_file 40915
pari_printf 408
pari_putc 108762
pari_puts 16655
pari_safefopen 0
pari_set_last_newline 36451
pari_sprint0 10
pari_sprintf 8055
pari_stdin_isatty 862
pari_strdup 19315
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 8990
path_expand 2586
path_is_absolute 0
popinfile 1700
print 43920
print0 46685
print0_file 0
print1 2755
print_0_or_pm1 505939
print_context 155
print_entree 0
print_errcontext 2585
print_functions_hash 0
print_prefixed_text 2640
printf0 400
prints 670
printsep 115
printsep1 10
printtex 10
putc_lw 4313298
puts_lw 102700
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 322939
shift_add 875
sm_dopr 12997
stack_sprintf 935
stack_strcat 675
stack_strdup 935
str_absint 234943
str_addr 0
str_alloc 246786
str_alloc0 659
str_init 104931
str_long 63805
str_print0 10
str_putc 4638186
str_puts 719691
str_putscut 27702
str_ulong 63805
strftime_expand 0
strlen_real 11616
switchin 0
switchin_last 0
switchout 0
switchout_get_FILE 0
term_color 370
term_get_color 13726
term_height 5
term_height_intern 5
term_width 4210
term_width_intern 4210
texVpowE 150
texe 0
texexpo 150
texi 55
texi_sign 185
texnome 150
texparen 0
times_monome 71355
times_texnome 120
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 14846
utodec 853249
v_get_arg 1335
vsigne 0
warning0 5
wr 0
wrGEN 0
wr_check 0
wr_dec 5748
wr_lead_monome 37290
wr_lead_texnome 105
wr_long 0
wr_monome 70000
wr_texnome 75
wr_vecsmall 1510
wrexpo 92190
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