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 17110-9967e23) Lines: 476 643 74.0 %
Date: 2014-11-26 Functions: 71 77 92.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 279 498 56.0 %

Function Name Sort by function name Hit count Sort by hit count
addhelp 30
alias0 20
andpari 117145
chartoGENstr 40
check_name 5
check_proto 820025
cmp_by_var 2730
cmp_epname 0
compile_str 6995
delete_var 31631
do_alias 3429414
eval_mnemonic 0
exponent 63330
fetch_entry 1877
fetch_entry_raw 3413964
fetch_user_var 1790
fetch_var 19906
fetch_var_higher 12615
fetch_var_value 5
fill_hashtable_single 826656
findentry 3440531
gadd1e 2257320
gadde 21145
gdive 5
gdivente 5
gdivrounde 5
gmode 5
gmule 3905
gp_read_str 0
gpolvar 335
gshift_right 994
gshiftle 5
gshiftre 5
gsub1e 0
gsube 10836765
hashvalue 826656
hashvalue_raw 3440531
ifpari 9017999
ifpari_multi 8765
ifpari_void 11653896
initep 11469
insertep 838115
install 5
int_read 4942505
int_read_more 409383
is_entry 24981
kill0 15
killep 2050
name_var 60
number 6174180
orpari 1711290
pari_add_function 0
pari_fill_hashtable 3792
pari_is_default 1586
pari_lex 18206755
pari_var_create 12024
pari_var_init 948
pari_var_next 68
pari_var_next_temp 60
print_all_user_fun 0
readseq 2393
real_0_digits 115
real_read 66993
skipconstante 4793163
skipdigits 4794548
skipexponent 4792878
skipstring 734109
strntoGENstr 84155
strtoGENstr 40819
strtoi 4875512
strtor 66993
type0 10535
u_pow10 1168345
varhigher 5
varlower 5
varstate_restore 3869
varstate_save 35701

Generated by: LCOV version 1.9