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 - anal.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17932-6fdb233) Lines: 634 737 86.0 %
Date: 2015-08-04 Functions: 90 94 95.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 384 564 68.1 %

Function Name Sort by function name Hit count Sort by hit count
_given_value 3911
_higher 49
_lower 42
addhelp 49
alias0 28
andpari 165536
bin_read_more 0
binnumber 7
chartoGENstr 56
check_name 7
check_proto 2159602
cmp_by_var 5059
cmp_epname 7
compile_str 9793
delete_var 57177
do_alias 5614861
eval_mnemonic 5584
exponent 75278
fetch_entry 4702
fetch_entry_raw 5553300
fetch_user_var 4590
fetch_var 39185
fetch_var_higher 19826
fetch_var_value 7
fill_hashtable_single 2175660
findentry 5600492
gadd1e 3160262
gadde 2269984
gdive 7
gdivente 7
gdivrounde 7
gmode 7
gmule 79913
gp_read_str 0
gpolvar 518
gshift_right 1392
gshiftle 7
gshiftre 7
gsub1e 14
gsube 15171471
hashvalue 2175660
hashvalue_raw 5600492
hex_read_more 0
hexnumber 7
ifpari 12893354
ifpari_multi 12355
ifpari_void 16361097
initep 23187
insertep 2198798
install 7
int_read 7493269
int_read_dec 7638945
int_read_more 659888
is_entry 44877
isbin 34207333
ishex 34207319
kill0 21
killep 3848
name_var 84
number 9354961
orpari 2396940
pari_add_function 0
pari_fill_hashtable 9180
pari_is_default 2315
pari_lex 28383147
pari_var_close 1787
pari_var_create 14220
pari_var_init 2295
pari_var_next 84
pari_var_next_temp 126
print_all_user_fun 7
readseq 3353
real_0_digits 168
real_read 145690
skipconstante 7383865
skipdigits 7387009
skipexponent 7383379
skipstring 1111818
strntoGENstr 262357
strtoGENstr 117350
strtoi 7493269
strtor 145690
type0 14883
u_pow10 1640738
var_register 49
varentries_reset 133
varentries_set 10055
varentries_unset 61702
varhigher 42
varlower 28
vars_sort_inplace 147
vars_to_RgXV 147
varstate_restore 57707
varstate_save 132916

Generated by: LCOV version 1.9