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 16962-5a32637) Lines: 426 610 69.8 %
Date: 2014-10-29 Functions: 63 71 88.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 278 505 55.0 %

Function Name Sort by function name Hit count Sort by hit count
addhelp 42
alias0 28
andpari 159943
chartoGENstr 56
check_proto 1029264
cmp_epname 0
compile_str 9793
delete_var 3751
do_alias 4777283
eval_mnemonic 0
exponent 88662
fetch_entry 4736696
fetch_member 18529
fetch_named_var 2244
fetch_user_var 1043
fetch_var 3763
fetch_var_value 7
fill_hashtable_single 1037664
findentry 4775500
gadd1e 3160241
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 1076468
hashvalue_raw 4755225
ifpari 12627229
ifpari_multi 12271
ifpari_void 16314890
install 7
installep 15064
int_read 6939862
int_read_more 563982
is_entry 34345
is_entry_intern 36560
kill0 21
manage_var 0
name_var 84
number 8560216
orpari 2395540
pari_add_function 0
pari_fill_hashtable 4804
pari_lex 25445377
pari_var_create 15971
pari_var_init 1201
pari_var_next 168
pari_var_next_temp 84
pari_var_pop 0
print_all_user_fun 0
readseq 3325
real_0_digits 161
real_read 93791
skipconstante 6703316
skipdigits 6705255
skipexponent 6702938
skipstring 1026702
strntoGENstr 112038
strtoGENstr 53851
strtoi 6846071
strtor 93791
type0 11221
u_pow10 1531692

Generated by: LCOV version 1.9