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 18948-dd2a64a) Lines: 619 720 86.0 %
Date: 2016-05-27 Functions: 90 94 95.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 387 566 68.4 %

Function Name Sort by function name Hit count Sort by hit count
_given_value 4058
_higher 49
_lower 42
addhelp 49
alias0 35
andpari 175532
bin_read_more 0
binnumber 7
chartoGENstr 56
check_name 7
check_proto 2355727
cmp_by_var 5059
cmp_epname 7
compile_str 10108
delete_var 107957
do_alias 5789002
eval_mnemonic 5584
exponent 75292
fetch_entry 4814
fetch_entry_raw 5619226
fetch_user_var 4688
fetch_var 41512
fetch_var_higher 68311
fetch_var_value 7
fill_hashtable_single 2372128
findentry 5772605
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 2372128
hashvalue_raw 5772605
hex_read_more 0
hexnumber 7
ifpari 12902196
ifpari_multi 74452
ifpari_void 16546508
initep 25079
insertep 2397144
install 7
int_read 7521836
int_read_dec 7668779
int_read_more 661505
is_entry 152478
isbin 34330669
ishex 34330655
kill0 21
killep 21
name_var 224
number 9385305
orpari 2480940
pari_add_function 0
pari_fill_hashtable 9376
pari_is_default 901
pari_lex 28513922
pari_var_close 1836
pari_var_create 21794
pari_var_init 2344
pari_var_next 224
pari_var_next_temp 126
print_all_user_fun 7
readseq 3353
real_0_digits 168
real_read 146957
skipconstante 7407776
skipdigits 7410983
skipexponent 7407192
skipstring 1112385
strntoGENstr 377606
strtoGENstr 225266
strtoi 7521836
strtor 146957
type0 16829
u_pow10 1641234
var_register 63
varentries_reset 287
varentries_set 10412
varentries_unset 62178
varhigher 56
varlower 28
vars_sort_inplace 147
vars_to_RgXV 147
varstate_restore 58008
varstate_save 140163

Generated by: LCOV version 1.9