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 16375-9f41ae0) Lines: 1529 2426 63.0 %
Date: 2014-04-19 Functions: 194 279 69.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 974 1874 52.0 %

Function Name Sort by function name Hit count Sort by hit count
GENtoGENstr 693
GENtoGENstr_nospace 0
GENtoTeXstr 0
GENtostr 0
GENtostr1 22797
GENtostr_aux 124290
GENtostr_fun 37421
GENtostr_fun_unquoted 122613
GENtostr_unquoted 6092
RgV_to_str 0
RgV_to_str_fun 9826
Str 9800
Str_fun 9814
Strchr 7
Strexpand 12
Strprintf 721
Strtex 14
VpowE 122838
_cfwrite 0
_expand_env 3471
_flush_log 136538
_fputs 41862
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 3471
_putc_log 6290866
_puts_log 41862
absrtostr 15184
absrtostr_width_frac 252
blancs 0
brute 0
bruti 581709
bruti_intern 552287
bruti_sign 716965
check_filtre 1162
check_magic 0
dbg 0
dbgGEN 0
dbg_addr 0
dbg_pari_heap 0
dbg_word 0
decode_color 0
delete_buffer 3584
delete_dirs 2294
dft_help 7
do_append 0
dopr_arg_vector 1253
dosign 3971
eng_ord 0
env_ok 320
err_flush 0
err_printf 0
error0 14
ex10 15429
file_getline 60714
file_input 60714
file_is_binary 0
filestate_restore 3149
filtre 12085
filtre0 71637
fix_buffer 1533
fmtnum 3607
fmtreal 567
fmtstr 37303
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 20696
gen_output_fun 20696
get_file 0
get_fun 85152
get_sigd 539
get_texvar 147
get_var 51245
gp_dlopen 7
gp_expand_path 1153
gp_getenv 8
gp_read_file 0
gp_read_stream 2359
gp_read_stream_buf 3325
gp_readvec_file 0
gp_readvec_stream 21
gpinstall 7
gpwritebin 0
gsprintf 14
gvsprintf 276
history 147
init_filtre 4541
init_linewrap 21778
init_unique 160
initout 1153
input_loop 48863
install0 7
is_dir_stat 0
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 39762
isfactor 172933
isnull 2584621
isone 908622
itoc 0
itostr 160621
itostr_sign 510236
kill_file_stack 2317
killallfiles 1176
lim_lines_output 0
log10_2 12
ltoc 84
matbrute 0
matbruti 21190
monome 119520
new_buffer 3596
new_line 35
newfile 39614
normalErrC 110356
normalErrF 9412
normalErrS 41847
normalOutC 6180510
normalOutF 127126
normalOutS 15
numdig 510236
ok_pipe 0
os_getenv 2646
os_signal 12623
out_print0 64442
out_printf 2799
out_putc 248019
out_puts 166918
out_term_color 13296
out_vprintf 3538
outmat 0
outpad 4146
output 0
paren 7523
pari_add_hist 34621
pari_ask_confirm 0
pari_close_files 1141
pari_close_homedir 1141
pari_default_path 1153
pari_dir_exists 160
pari_fclose 39579
pari_file_exists 0
pari_flush 123921
pari_fopen 0
pari_fopen_or_fail 17865
pari_fopengz 21700
pari_fprintf 0
pari_fread_chars 69601
pari_fread_longs 0
pari_get_hist 126
pari_get_histtime 21
pari_get_homedir 2314
pari_get_infile 21693
pari_init_files 1153
pari_init_homedir 1153
pari_is_dir 0
pari_is_file 0
pari_is_rwx 160
pari_kill_file 39614
pari_last_tmp_file 48708
pari_last_was_newline 37833
pari_nb_hist 0
pari_open_file 17865
pari_printf 550
pari_putc 136403
pari_puts 22086
pari_safefopen 0
pari_set_last_newline 48529
pari_sprint0 14
pari_sprintf 10849
pari_stdin_isatty 1153
pari_strdup 26000
pari_strndup 0
pari_tmp_dir 160
pari_unique_dir 160
pari_unique_filename 0
pari_unlink 3536
pari_vfprintf 0
pari_vprintf 550
pari_vsprintf 12088
path_expand 3471
path_is_absolute 0
popinfile 2282
print 60389
print0 64260
print0_file 0
print1 3857
print_0_or_pm1 717224
print_context 210
print_entree 0
print_errcontext 3191
print_functions_hash 0
print_prefixed_text 3268
printf0 532
prints 938
printsep 161
printsep1 14
printtex 14
putc_lw 6126908
puts_lw 141347
quote_string 10862
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
real0tostr 686
real0tostr_width_frac 35
resetout 1153
set_last_newline 414937
shift_add 1106
sm_dopr 17155
stack_sprintf 1239
stack_strcat 945
stack_strdup 1239
str_absint 334900
str_addr 0
str_alloc 351946
str_alloc0 1039
str_init 143531
str_long 83852
str_print0 14
str_putc 6571871
str_puts 1002449
str_putscut 37303
str_ulong 83852
strftime_expand 0
strlen_real 14486
switchin 0
switchin_last 0
switchout 0
switchout_get_FILE 0
term_color 518
term_get_color 16970
term_height 7
term_height_intern 7
term_width 5347
term_width_intern 5347
texVpowE 210
texe 0
texexpo 210
texi 77
texi_sign 259
texnome 210
texparen 0
times_monome 97156
times_texnome 168
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 16328
utodec 999476
v_get_arg 1785
vsigne 0
warning0 7
wr 0
wrGEN 0
wr_check 0
wr_dec 9049
wr_lead_monome 51763
wr_lead_texnome 147
wr_long 0
wr_monome 94888
wr_texnome 105
wr_vecsmall 2234
wrexpo 122838
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 5694
zerotostr 21

Generated by: LCOV version 1.9