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 16912-212c0f0) Lines: 426 610 69.8 %
Date: 2014-10-20 Functions: 63 71 88.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 277 505 54.9 %

Function Name Sort by function name Hit count Sort by hit count
addhelp 42
alias0 28
andpari 159936
chartoGENstr 56
check_proto 1040179
cmp_epname 0
compile_str 9793
delete_var 3748
do_alias 4772389
eval_mnemonic 0
exponent 88662
fetch_entry 4732422
fetch_member 18529
fetch_named_var 2273
fetch_user_var 1043
fetch_var 3780
fetch_var_value 7
fill_hashtable_single 1048698
findentry 4771151
gadd1e 3160234
gadde 29603
gdive 7
gdivente 7
gdivrounde 7
gmode 7
gmule 5467
gp_read_str 0
gpolvar 427
gshift_right 1392
gshiftle 7
gshiftre 7
gsub1e 0
gsube 15171471
hashvalue 1087427
hashvalue_raw 4750951
ifpari 12624309
ifpari_multi 12271
ifpari_void 16314855
install 7
installep 14998
int_read 6911159
int_read_more 560048
is_entry 34233
is_entry_intern 36456
kill0 21
manage_var 0
name_var 84
number 8527586
orpari 2395519
pari_add_function 0
pari_fill_hashtable 4872
pari_lex 25437415
pari_var_create 15918
pari_var_init 1218
pari_var_next 176
pari_var_next_temp 84
pari_var_pop 0
print_all_user_fun 0
readseq 3333
real_0_digits 161
real_read 93784
skipconstante 6702081
skipdigits 6704013
skipexponent 6701738
skipstring 1026659
strntoGENstr 111196
strtoGENstr 53278
strtoi 6817375
strtor 93784
type0 11221
u_pow10 1527765

Generated by: LCOV version 1.9