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 16746-c2cb716) Lines: 424 608 69.7 %
Date: 2014-08-31 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 65
alias0 20
andpari 114240
chartoGENstr 40
check_proto 726513
cmp_epname 0
compile_str 6995
delete_var 2695
do_alias 3442291
eval_mnemonic 0
exponent 63230
fetch_entry 3412523
fetch_member 13235
fetch_named_var 1607
fetch_user_var 745
fetch_var 2707
fetch_var_value 10
fill_hashtable_single 732517
findentry 3441974
gadd1e 2257310
gadde 21145
gdive 5
gdivente 5
gdivrounde 5
gmode 5
gmule 3905
gp_read_str 0
gpolvar 310
gshift_right 994
gshiftle 5
gshiftre 5
gsub1e 0
gsube 10836765
hashvalue 761968
hashvalue_raw 3425758
ifpari 9020651
ifpari_multi 8770
ifpari_void 11653523
install 40
installep 9134
int_read 4945664
int_read_more 409877
is_entry 26221
is_entry_intern 27844
kill0 25
manage_var 0
name_var 60
number 6175479
orpari 1711065
pari_add_function 0
pari_fill_hashtable 4320
pari_lex 18205558
pari_var_create 9700
pari_var_init 862
pari_var_next 120
pari_var_next_temp 60
pari_var_pop 0
print_all_user_fun 0
readseq 2380
real_0_digits 10
real_read 67783
skipconstante 4795691
skipdigits 4797196
skipexponent 4795441
skipstring 733400
strntoGENstr 81206
strtoGENstr 38772
strtoi 4877881
strtor 67783
type0 8015
u_pow10 1166585

Generated by: LCOV version 1.9