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 - anal.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19374-ac31b96) Lines: 660 743 88.8 %
Date: 2016-08-30 06:11:37 Functions: 100 102 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_given_value 3028
_higher 49
_lower 42
addhelp 49
alias0 28
andpari 175651
bin_number_len 38
bin_read 28
binary_read 56
chartoGENstr 56
check_name 7
check_proto 1345325
cmp_by_var 5059
cmp_epname 7
compile_str 10108
dec_number_len 2812292
dec_read 7612177
dec_read_more 751857
dec_strtoi_len 751857
delete_var 110030
do_alias 5614076
eval_mnemonic 1584
exponent 75299
fetch_entry 2784
fetch_entry_raw 5463122
fetch_user_var 2672
fetch_var 41754
fetch_var_higher 68380
fetch_var_value 7
fill_hashtable_single 1354670
findentry 5624684
gadd1e 3163195
gadde 2373417
gdive 7
gdivente 7
gdivrounde 7
gmode 7
gmule 91134
gp_read_str 0
gpolvar 518
gshift_right 1392
gshiftle 7
gshiftre 7
gsub1e 14
gsube 15171541
hashvalue 1354670
hashvalue_raw 5624684
hex_number_len 54
hex_read 28
ifpari 12903692
ifpari_multi 74452
ifpari_void 16601533
initep 21375
insertep 1375982
install 7
int_read 7527610
is_entry 160654
isbin 34244821
ishex 34244772
kill0 21
killep 21
name_var 224
number 7687476
orpari 2480940
pari_add_function 0
pari_fill_hashtable 5342
pari_is_default 908
pari_isbdigit 1484
pari_lex 28226400
pari_pthread_init_varstate 13175
pari_thread_init_varstate 208474
pari_var_close 1843
pari_var_create 18874
pari_var_init 1336
pari_var_next 224
pari_var_next_temp 126
print_all_user_fun 7
readseq 3675
real_0_digits 168
real_read 82585
real_read_more 2038
skipconstante 7410651
skipdigits 7412864
skipexponent 7410060
skipstring 1107825
strntoGENstr 296870
strtoGENstr 200525
strtobin_len 56
strtoi 7527610
strtor 82585
type0 23059
var_register 63
var_restore 224282
varentries_reset 287
varentries_set 7415
varentries_unset 18952
varhigher 56
varlower 28
vars_sort_inplace 147
vars_to_RgXV 147
varstate_restore 15812
varstate_save 93050

Generated by: LCOV version 1.11