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 19825-b77c7f8) Lines: 1473 2528 58.3 %
Date: 2016-12-04 05:49:01 Functions: 195 290 67.2 %
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 0
GENtostr_fun 693
GENtostr_raw 2219
GENtostr_unquoted 21843
RgV_to_str 0
RgV_to_str_fun 10143
Str 10129
Str_fun 10143
Strchr 7
Strexpand 0
Strprintf 721
Strtex 14
VpowE 156086
_cfwrite 0
_expand_env 4047
_flush_log 187946
_fputs 347048
_fwrite 0
_initout 0
_lfwrite 0
_path_expand 4047
_putc_log 7492636
_puts_log 347048
absrtostr 14943
absrtostr_width_frac 322
blancs 0
brute 0
bruti 680073
bruti_intern 592748
bruti_sign 832134
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 4356
dft_help 0
do_append 0
dopr_arg_vector 1218
dosign 4253
eng_ord 0
env_ok 628
err_flush 7
err_printf 245
error0 14
ex10 15258
externstr 0
file_getline 112049
file_input 112049
file_is_binary 0
filestate_restore 16085
filtre0 120272
fix_buffer 1974
fmtnum 4078
fmtreal 567
fmtstr 79295
forpath_init 0
forpath_next 0
fputGEN_pariout 0
gen_output 28529
gen_output_fun 28529
get_file 0
get_fun 107645
get_lines 0
get_sigd 539
get_texvar 98
get_var 59843
gp_dlopen 0
gp_embedded 0
gp_embedded_init 0
gp_filter 10108
gp_getenv 0
gp_read_file 7
gp_read_from_input 0
gp_read_str_multiline 0
gp_read_stream 2408
gp_read_stream_buf 3696
gp_readvec_file 0
gp_readvec_stream 28
gpextern 0
gpinstall 0
gpsystem 0
gpwritebin 0
gsprintf 14
gvsprintf 2692
history 112
in_help 1360
init_filtre 5108
init_linewrap 29788
init_unique 314
initout 1350
input_loop 85678
install0 0
is_dir_stat 63
is_long_ok 0
is_magic_ok 0
is_sizeoflong_ok 0
isdenom 40761
isfactor 195524
isnull 2746522
isnull_for_pol 1604218
isone 1002175
itoc 0
itostr 354162
itostr_sign 724958
kill_file_stack 129037
killallfiles 42
lim_lines_output 0
log10_2 12
ltoc 84
matbrute 0
matbruti 28529
monome 137396
new_buffer 3848
new_line 8064
newfile 54418
normalErrC 695542
normalErrF 48430
normalErrS 347030
normalOutC 6797094
normalOutF 139516
normalOutS 18
numdig 724958
ok_pipe 0
os_getenv 27020
os_signal 17384
out_print0 79102
out_printf 13985
out_putc 855983
out_puts 441061
out_term_color 78403
out_vprintf 15230
outmat 0
outpad 4617
output 0
paren 8260
pari_add_hist 52184
pari_ask_confirm 0
pari_close_files 1857
pari_close_homedir 1857
pari_dir_exists 314
pari_fclose 54362
pari_file_exists 0
pari_flush 123228
pari_fopen 0
pari_fopen_or_fail 32221
pari_fopengz 22134
pari_fprintf 0
pari_fread_chars 70931
pari_fread_longs 0
pari_get_hist 91
pari_get_histtime 21
pari_get_homedir 2698
pari_get_infile 22127
pari_init_files 63658
pari_init_homedir 1350
pari_is_dir 63
pari_is_file 0
pari_is_rwx 314
pari_kill_file 54418
pari_last_tmp_file 98270
pari_last_was_newline 68479
pari_nb_hist 0
pari_open_file 32221
pari_printf 601
pari_putc 159048
pari_puts 29916
pari_safefopen 0
pari_set_last_newline 95176
pari_sprint0 14
pari_sprintf 20208
pari_stdin_isatty 1350
pari_strdup 34844
pari_strndup 0
pari_thread_close_files 64538
pari_tmp_dir 314
pari_unique_dir 314
pari_unique_filename 0
pari_unlink 6582
pari_vfprintf 0
pari_vprintf 601
pari_vsprintf 21531
path_expand 4047
path_is_absolute 0
popinfile 66421
print 73215
print0 78367
print0_file 0
print1 5145
print_0_or_pm1 832316
print_context 1386
print_entree 0
print_errcontext 16106
print_functions_hash 0
print_precontext 1022
print_prefixed_text 21573
printf0 497
prints 490
printsep 707
printsep1 21
printtex 7
putc_lw 6739893
puts_lw 185575
quote_string 10192
rdGEN 0
rd_long 0
rdstr 0
readbin 0
readobj 0
readstr 0
real0tostr 889
real0tostr_width_frac 35
resetout 1350
set_last_newline 1294349
shift_add 966
sm_dopr 40671
stack_GENtostr_fun 152072
stack_GENtostr_fun_unquoted 196876
stack_sprintf 1323
stack_strcat 1176
stack_strdup 1323
str_absint 356455
str_addr 0
str_alloc 377089
str_alloc0 1118
str_init 195550
str_long 110690
str_print0 14
str_putc 7666694
str_puts 1247833
str_putscut 79295
str_ulong 110690
strftime_expand 0
string_gets 0
strlen_real 187075
switchin 7
switchin_last 7
switchout 0
switchout_get_FILE 0
term_color 602
term_get_color 96683
term_height 7
term_height_intern 7
term_width 23685
term_width_intern 23685
texVpowE 140
texe 0
texexpo 140
texi 56
texi_sign 182
texnome 140
texparen 0
times_monome 114121
times_texnome 112
try_dlopen 0
try_name 0
try_open 0
try_pipe 0
type_name 34787
utodec 1455917
v_get_arg 1617
vsigne 0
warning0 7
wr 0
wrGEN 0
wr_check 0
wr_dec 8195
wr_lead_monome 60326
wr_lead_texnome 98
wr_long 0
wr_monome 110138
wr_texnome 70
wr_vecsmall 2053
wrexpo 156086
write0 0
write1 0
writeGEN 0
write_magic 0
writebin 0
writenamedGEN 0
writetex 0
wrstr 0
zeros 6174
zerotostr 21

Generated by: LCOV version 1.11