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 17611-4505802) Lines: 593 676 87.7 %
Date: 2015-03-06 Functions: 85 87 97.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 348 500 69.6 %

Function Name Sort by function name Hit count Sort by hit count
_given_value 3911
_higher 49
_lower 42
addhelp 56
alias0 28
andpari 165536
chartoGENstr 56
check_name 14
check_proto 2079810
cmp_by_var 5059
cmp_epname 7
compile_str 9793
delete_var 46733
do_alias 5327687
eval_mnemonic 5584
exponent 81067
fetch_entry 4618
fetch_entry_raw 5268237
fetch_user_var 4492
fetch_var 28552
fetch_var_higher 19455
fetch_var_value 7
fill_hashtable_single 2095518
findentry 5314467
gadd1e 3160262
gadde 29890
gdive 7
gdivente 7
gdivrounde 7
gmode 7
gmule 5517
gp_read_str 0
gpolvar 518
gshift_right 1392
gshiftle 7
gshiftre 7
gsub1e 14
gsube 15171471
hashvalue 2095518
hashvalue_raw 5314467
ifpari 12740565
ifpari_multi 12355
ifpari_void 16319253
initep 22283
insertep 2117752
install 14
int_read 7209381
int_read_more 659516
is_entry 43978
kill0 21
killep 3848
name_var 84
number 8931046
orpari 2395820
pari_add_function 0
pari_fill_hashtable 8984
pari_is_default 2252
pari_lex 26662329
pari_var_close 1738
pari_var_create 14066
pari_var_init 2246
pari_var_next 84
pari_var_next_temp 126
print_all_user_fun 7
readseq 3339
real_0_digits 161
real_read 151332
skipconstante 6948590
skipdigits 6951657
skipexponent 6948139
skipstring 1040047
strntoGENstr 259258
strtoGENstr 117134
strtoi 7058049
strtor 151332
type0 14883
u_pow10 1640598
var_register 49
varentries_reset 133
varentries_set 9908
varentries_unset 61618
varhigher 42
varlower 28
vars_sort_inplace 147
vars_to_RgXV 147
varstate_restore 57623
varstate_save 130277

Generated by: LCOV version 1.9