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 16804-345a01c) Lines: 424 608 69.7 %
Date: 2014-09-20 Functions: 63 71 88.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 274 503 54.5 %

Function Name Sort by function name Hit count Sort by hit count
addhelp 91
alias0 28
andpari 159936
chartoGENstr 56
check_proto 1008760
cmp_epname 0
compile_str 9793
delete_var 3765
do_alias 4796232
eval_mnemonic 0
exponent 88522
fetch_entry 4754770
fetch_member 18543
fetch_named_var 2237
fetch_user_var 1043
fetch_var 3777
fetch_var_value 14
fill_hashtable_single 1017076
findentry 4792321
gadd1e 3160234
gadde 29603
gdive 7
gdivente 7
gdivrounde 7
gmode 7
gmule 5467
gp_read_str 0
gpolvar 434
gshift_right 1392
gshiftle 7
gshiftre 7
gsub1e 0
gsube 15171471
hashvalue 1054627
hashvalue_raw 4773313
ifpari 12627397
ifpari_multi 12278
ifpari_void 16315029
install 56
installep 12775
int_read 6922860
int_read_more 561247
is_entry 33043
is_entry_intern 35314
kill0 35
manage_var 0
name_var 84
number 8539377
orpari 2395519
pari_add_function 0
pari_fill_hashtable 5984
pari_lex 25479418
pari_var_create 13633
pari_var_init 1194
pari_var_next 168
pari_var_next_temp 84
pari_var_pop 0
print_all_user_fun 0
readseq 3332
real_0_digits 14
real_read 94897
skipconstante 6712850
skipdigits 6714957
skipexponent 6712500
skipstring 1026744
strntoGENstr 113283
strtoGENstr 54053
strtoi 6827963
strtor 94897
type0 11221
u_pow10 1527995

Generated by: LCOV version 1.9