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 18590-b5f7c1c) Lines: 641 742 86.4 %
Date: 2016-02-09 Functions: 90 94 95.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 387 566 68.4 %

Function Name Sort by function name Hit count Sort by hit count
_given_value 4058
_higher 49
_lower 42
addhelp 49
alias0 35
andpari 175301
bin_read_more 0
binnumber 7
chartoGENstr 56
check_name 7
check_proto 2311367
cmp_by_var 5059
cmp_epname 7
compile_str 10108
delete_var 104884
do_alias 5666874
eval_mnemonic 5584
exponent 75292
fetch_entry 4786
fetch_entry_raw 5601488
fetch_user_var 4660
fetch_var 39388
fetch_var_higher 67363
fetch_var_value 7
fill_hashtable_single 2327670
findentry 5650328
gadd1e 3163055
gadde 2269984
gdive 7
gdivente 7
gdivrounde 7
gmode 7
gmule 91113
gp_read_str 0
gpolvar 518
gshift_right 1392
gshiftle 7
gshiftre 7
gsub1e 14
gsube 15171541
hashvalue 2327670
hashvalue_raw 5650328
hex_read_more 0
hexnumber 7
ifpari 12903233
ifpari_multi 72660
ifpari_void 16436239
initep 24685
insertep 2352292
install 7
int_read 7512965
int_read_dec 7660349
int_read_more 661867
is_entry 47939
isbin 34299668
ishex 34299654
kill0 21
killep 21
name_var 224
number 9376781
orpari 2478525
pari_add_function 0
pari_fill_hashtable 9320
pari_is_default 901
pari_lex 28482099
pari_var_close 1822
pari_var_create 21423
pari_var_init 2330
pari_var_next 224
pari_var_next_temp 126
print_all_user_fun 7
readseq 3353
real_0_digits 168
real_read 147398
skipconstante 7402674
skipdigits 7405895
skipexponent 7402132
skipstring 1112294
strntoGENstr 272223
strtoGENstr 121812
strtoi 7512965
strtor 147398
type0 16724
u_pow10 1641140
var_register 63
varentries_reset 287
varentries_set 10363
varentries_unset 62122
varhigher 56
varlower 28
vars_sort_inplace 147
vars_to_RgXV 147
varstate_restore 57952
varstate_save 137991

Generated by: LCOV version 1.9