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 21342-bb34613) Lines: 1802 2529 71.3 %
Date: 2017-11-18 06:21:14 Functions: 247 292 84.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GENtoGENstr_nospace 0
GENtoTeXstr 0
GENtostr 0
_initout 0
blancs 0
brute 0
dbg 0
dbgGEN 0
dbg_addr 0
dbg_pari_heap 0
dbg_word 0
decode_color 0
do_append 0
eng_ord 0
fputGEN_pariout 0
get_file 0
gp_embedded 0
gp_embedded_init 0
gp_read_from_input 0
gp_read_str_multiline 0
lim_lines_output 0
matbrute 0
ok_pipe 0
outmat 0
output 0
pari_ask_confirm 0
pari_file_exists 0
pari_fopen 0
pari_fprintf 0
pari_nb_hist 0
pari_safefopen 0
pari_strndup 0
pari_unique_filename 0
pari_unique_filename_suffix 0
pari_vfprintf 0
print_entree 0
print_functions_hash 0
str_addr 0
strftime_expand 0
string_gets 0
switchout 0
texe 0
texparen 0
try_dlopen 0
vsigne 0
externstr 4
gp_readvec_file 4
gpextern 4
readstr 4
writeGEN 4
writetex 4
err_flush 7
itoc 7
printp 7
printtex 7
switchin_last 7
term_height 7
term_height_intern 7
warning0 7
_cfwrite 8
check_magic 8
dft_help 8
get_lines 8
gp_dlopen 8
gp_getenv 8
gpinstall 8
gpwritebin 8
install0 8
is_sizeoflong_ok 8
rdstr 8
readbin 8
try_pipe 8
write1 8
write_magic 8
writebin 8
writenamedGEN 8
wrstr 8
Strexpand 12
file_is_binary 12
log10_2 12
rdGEN 12
wrGEN 12
Strtex 14
error0 14
pari_sprint0 14
gp_read_file 15
forpath_init 16
forpath_next 16
is_long_ok 16
path_is_absolute 16
try_name 16
try_open 16
readobj 20
Strchr 21
printsep1 21
switchin 23
gpsystem 24
write0 24
pari_get_histtime 25
check_secure 32
gp_readvec_stream 32
is_magic_ok 32
zerotostr 35
pari_is_file 36
print0_file 36
switchout_get_FILE 36
wr 36
normalOutS 43
rd_long 44
wr_check 44
killallfiles 49
pari_fread_longs 56
texi 60
wr_long 60
wr_texnome 70
_lfwrite 72
_fwrite 80
is_dir_stat 86
pari_is_dir 86
pari_get_hist 91
get_texvar 98
wr_lead_texnome 98
times_texnome 112
history 116
texVpowE 140
texexpo 140
texnome 140
texi_sign 194
err_printf 253
init_unique 340
pari_dir_exists 340
pari_is_rwx 340
pari_tmp_dir 340
pari_unique_dir 340
prints 490
printf0 518
pari_printf 599
pari_vprintf 599
term_color 660
env_ok 680
GENtoGENstr 693
GENtostr_fun 693
Strprintf 721
printsep 763
real0tostr 944
stack_strcat 1190
str_alloc0 1197
dopr_arg_vector 1239
stack_sprintf 1345
stack_strdup 1345
pari_close_files 1536
pari_close_homedir 1536
initout 1538
pari_init_homedir 1538
pari_stdin_isatty 1538
resetout 1538
print_precontext 1582
gsprintf 1596
v_get_arg 1638
in_help 1679
gvsprintf 1714
ltoc 1876
fix_buffer 2058
print_context 2247
GENtostr_raw 2282
pari_get_homedir 3080
gp_read_stream 3119
wr_vecsmall 3492
gp_read_stream_buf 4419
_expand_env 4680
_path_expand 4680
path_expand 4680
delete_buffer 4765
new_buffer 4765
init_filtre 6025
pari_unlink 7160
out_printf 7683
new_line 7995
print_errcontext 8427
filestate_restore 8480
out_vprintf 9043
gp_filter 10108
Str 10189
Str_fun 10203
RgV_to_str 10215
wr_dec 10238
str_print0 10265
quote_string 11443
real0tostr_width_frac 12580
absrtostr_width_frac 13071
get_sigd 13302
pari_sprintf 13306
fmtreal 13330
paren 13398
shift_add 13757
print_prefixed_text 13828
print1 15813
term_width 16512
term_width_intern 16512
GENtostr_unquoted 17948
absrtostr 18319
zeros 20201
os_getenv 20295
pari_fopengz 22841
pari_get_infile 22850
pari_vsprintf 25408
normalErrF 25506
sm_dopr 26647
str_printf 27729
pari_strdup 29486
ex10 31383
type_name 33770
gen_output 34725
gen_output_fun 34725
matbruti 34732
pari_fopen_or_fail 35181
pari_open_file 35181
pari_puts 35818
init_linewrap 36144
isdenom 39130
out_term_color 47704
fmtnum 52413
str_arg_vprintf 54376
term_get_color 56910
fmtstr 58044
str_putscut 58044
pari_fclose 58053
newfile 58123
pari_kill_file 58123
pari_add_hist 62018
dosign 65109
outpad 65708
pari_last_was_newline 70708
pari_fread_chars 70939
get_var 76262
wr_lead_monome 76717
print 86222
input_loop 89482
pari_set_last_newline 89567
pari_init_files 92429
pari_thread_close_files 92904
pari_last_tmp_file 93841
popinfile 94462
print0 102049
out_print0 102840
str_long 120768
str_ulong 120768
wr_monome 120855
file_input 127274
file_getline 127302
times_monome 127939
filtre0 135814
pari_flush 144270
get_fun 147830
normalOutF 152953
strlen_real 153960
pari_putc 155510
monome 155817
stack_GENtostr_fun 171141
VpowE 172988
wrexpo 172988
_flush_log 178459
kill_file_stack 185787
stack_GENtostr_fun_unquoted 208643
isfactor 209185
str_init 211492
puts_lw 230862
normalErrS 244895
_fputs 244938
_puts_log 244938
str_absint 405202
out_puts 422623
normalErrC 422870
str_alloc 429583
out_putc 579875
itostr 690468
bruti_intern 697259
bruti 837622
bruti_sign 998552
print_0_or_pm1 998746
set_last_newline 999838
itostr_sign 1113536
numdig 1113536
isone 1146865
str_puts 1492642
isnull_for_pol 1644164
utodec 2202884
isnull 3018420
putc_lw 6770194
normalOutC 6822212
_putc_log 7245082
str_putc 7911377

Generated by: LCOV version 1.11