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 16624-25b9976) Lines: 422 606 69.6 %
Date: 2014-06-24 Functions: 63 71 88.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 272 501 54.3 %

Function Name Sort by function name Hit count Sort by hit count
addhelp 65
alias0 20
andpari 114150
chartoGENstr 40
check_proto 768389
cmp_epname 0
compile_str 6985
delete_var 2728
do_alias 3443589
eval_mnemonic 0
exponent 63220
fetch_entry 3413724
fetch_member 13215
fetch_named_var 1670
fetch_user_var 745
fetch_var 2760
fetch_var_value 10
fill_hashtable_single 774750
findentry 3443132
gadd1e 2257315
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 804158
hashvalue_raw 3426939
ifpari 9017714
ifpari_multi 8760
ifpari_void 11653723
install 40
installep 9234
int_read 4948139
int_read_more 410474
is_entry 26116
is_entry_intern 27738
kill0 25
manage_var 0
name_var 60
number 6178554
orpari 1629724
pari_add_function 0
pari_fill_hashtable 4575
pari_lex 18209405
pari_var_create 9764
pari_var_init 913
pari_var_next 128
pari_var_next_temp 60
pari_var_pop 0
print_all_user_fun 0
readseq 2388
real_0_digits 10
real_read 67755
skipconstante 4796488
skipdigits 4797963
skipexponent 4796243
skipstring 733399
strntoGENstr 80928
strtoGENstr 38192
strtoi 4880384
strtor 67755
type0 8015
u_pow10 1167195

Generated by: LCOV version 1.9