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 21351-66b5338) Lines: 1802 2529 71.3 %
Date: 2017-11-22 06:21:08 Functions: 247 292 84.6 %
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 2282
GENtostr_unquoted 17948
RgV_to_str 10215
Str 10189
Str_fun 10203
Strchr 21
Strexpand 12
Strprintf 721
Strtex 14
VpowE 173016
_cfwrite 8
_expand_env 4680
_flush_log 178480
_fputs 244938
_fwrite 80
_initout 0
_lfwrite 72
_path_expand 4680
_putc_log 7247685
_puts_log 244938
absrtostr 18396
absrtostr_width_frac 13071
blancs 0
brute 0
bruti 837657
bruti_intern 697358
bruti_sign 998650
check_magic 8
check_secure 32
dbg 0
dbgGEN 0
dbg_addr 0
dbg_pari_heap 0
dbg_word 0
decode_color 0
delete_buffer 4765
dft_help 8
do_append 0
dopr_arg_vector 1239
dosign 65109
eng_ord 0
env_ok 680
err_flush 7
err_printf 253
error0 14
ex10 31460
externstr 4
file_getline 127323
file_input 127295
file_is_binary 12
filestate_restore 8480
filtre0 135835
fix_buffer 2058
fmtnum 52413
fmtreal 13330
fmtstr 58044
forpath_init 16
forpath_next 16
fputGEN_pariout 0
gen_output 34746
gen_output_fun 34746
get_file 0
get_fun 147851
get_lines 8
get_sigd 13302
get_texvar 98
get_var 76255
gp_dlopen 8
gp_embedded 0
gp_embedded_init 0
gp_filter 10108
gp_getenv 8
gp_read_file 15
gp_read_from_input 0
gp_read_str_multiline 0
gp_read_stream 3119
gp_read_stream_buf 4419
gp_readvec_file 4
gp_readvec_stream 32
gpextern 4
gpinstall 8
gpsystem 24
gpwritebin 8
gsprintf 1596
gvsprintf 1714
history 116
in_help 1679
init_filtre 6025
init_linewrap 36165
init_unique 340
initout 1538
input_loop 89503
install0 8
is_dir_stat 86
is_long_ok 16
is_magic_ok 32
is_sizeoflong_ok 8
isdenom 39130
isfactor 209213
isnull 3018623
isnull_for_pol 1644150
isone 1146985
itoc 7
itostr 690468
itostr_sign 1113586
kill_file_stack 185779
killallfiles 49
lim_lines_output 0
log10_2 12
ltoc 1876
matbrute 0
matbruti 34753
monome 155845
new_buffer 4765
new_line 7995
newfile 58123
normalErrC 422870
normalErrF 25506
normalErrS 244895
normalOutC 6824815
normalOutF 152974
normalOutS 43
numdig 1113586
ok_pipe 0
os_getenv 20295
out_print0 102840
out_printf 7683
out_putc 579896
out_puts 422644
out_term_color 47704
out_vprintf 9043
outmat 0
outpad 65708
output 0
paren 13398
pari_add_hist 62039
pari_ask_confirm 0
pari_close_files 1536
pari_close_homedir 1536
pari_dir_exists 340
pari_fclose 58053
pari_file_exists 0
pari_flush 144291
pari_fopen 0
pari_fopen_or_fail 35181
pari_fopengz 22841
pari_fprintf 0
pari_fread_chars 70939
pari_fread_longs 56
pari_get_hist 91
pari_get_histtime 25
pari_get_homedir 3080
pari_get_infile 22850
pari_init_files 92426
pari_init_homedir 1538
pari_is_dir 86
pari_is_file 36
pari_is_rwx 340
pari_kill_file 58123
pari_last_tmp_file 93862
pari_last_was_newline 70729
pari_nb_hist 0
pari_open_file 35181
pari_printf 599
pari_putc 155531
pari_puts 35839
pari_safefopen 0
pari_set_last_newline 89588
pari_sprint0 14
pari_sprintf 13306
pari_stdin_isatty 1538
pari_strdup 29486
pari_strndup 0
pari_thread_close_files 92911
pari_tmp_dir 340
pari_unique_dir 340
pari_unique_filename 0
pari_unique_filename_suffix 0
pari_unlink 7160
pari_vfprintf 0
pari_vprintf 599
pari_vsprintf 25408
path_expand 4680
path_is_absolute 16
popinfile 94475
print 86222
print0 102049
print0_file 36
print1 15813
print_0_or_pm1 998844
print_context 2247
print_entree 0
print_errcontext 8427
print_functions_hash 0
print_precontext 1582
print_prefixed_text 13828
printf0 518
printp 7
prints 490
printsep 763
printsep1 21
printtex 7
putc_lw 6772769
puts_lw 230883
quote_string 11443
rdGEN 12
rd_long 44
rdstr 8
readbin 8
readobj 20
readstr 4
real0tostr 965
real0tostr_width_frac 12580
resetout 1538
set_last_newline 999880
shift_add 13757
sm_dopr 26647
stack_GENtostr_fun 171162
stack_GENtostr_fun_unquoted 208643
stack_sprintf 1345
stack_strcat 1190
stack_strdup 1345
str_absint 405196
str_addr 0
str_alloc 429654
str_alloc0 1197
str_arg_vprintf 54376
str_init 211513
str_long 120761
str_print0 10265
str_printf 27729
str_putc 7913931
str_puts 1492769
str_putscut 58044
str_ulong 120761
strftime_expand 0
string_gets 0
strlen_real 153960
switchin 23
switchin_last 7
switchout 0
switchout_get_FILE 36
term_color 660
term_get_color 56910
term_height 7
term_height_intern 7
term_width 16512
term_width_intern 16512
texVpowE 140
texe 0
texexpo 140
texi 60
texi_sign 194
texnome 140
texparen 0
times_monome 127967
times_texnome 112
try_dlopen 0
try_name 16
try_open 16
try_pipe 8
type_name 33770
utodec 2203158
v_get_arg 1638
vsigne 0
warning0 7
wr 36
wrGEN 12
wr_check 44
wr_dec 10238
wr_lead_monome 76710
wr_lead_texnome 98
wr_long 60
wr_monome 120883
wr_texnome 70
wr_vecsmall 3492
wrexpo 173016
write0 24
write1 8
writeGEN 4
write_magic 8
writebin 8
writenamedGEN 8
writetex 4
wrstr 8
zeros 20257
zerotostr 35

Generated by: LCOV version 1.11