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-bordeaux.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 18881-7fb64bc) Lines: 619 720 86.0 %
Date: 2016-04-28 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 175532
bin_read_more 0
binnumber 7
chartoGENstr 56
check_name 7
check_proto 2353383
cmp_by_var 5059
cmp_epname 7
compile_str 10108
delete_var 107524
do_alias 6561994
eval_mnemonic 5584
exponent 75292
fetch_entry 4814
fetch_entry_raw 6392362
fetch_user_var 4688
fetch_var 41079
fetch_var_higher 68313
fetch_var_value 7
fill_hashtable_single 2369784
findentry 6545562
gadd1e 3163195
gadde 2373417
gdive 7
gdivente 7
gdivrounde 7
gmode 7
gmule 91134
gp_read_str 0
gpolvar 518
gshift_right 1392
gshiftle 7
gshiftre 7
gsub1e 14
gsube 15171541
hashvalue 2369784
hashvalue_raw 6545562
hex_read_more 0
hexnumber 7
ifpari 12902196
ifpari_multi 74452
ifpari_void 16536701
initep 25016
insertep 2394737
install 7
int_read 8802673
int_read_dec 8949616
int_read_more 662184
is_entry 152299
isbin 40421437
ishex 40421423
kill0 21
killep 21
name_var 224
number 10666480
orpari 2480919
pari_add_function 0
pari_fill_hashtable 9376
pari_is_default 901
pari_lex 33537073
pari_var_close 1836
pari_var_create 21745
pari_var_init 2344
pari_var_next 224
pari_var_next_temp 126
print_all_user_fun 7
readseq 3395
real_0_digits 168
real_read 146957
skipconstante 8692248
skipdigits 8695455
skipexponent 8691671
skipstring 1327124
strntoGENstr 377546
strtoGENstr 225395
strtoi 8802673
strtor 146957
type0 16822
u_pow10 1641572
var_register 63
varentries_reset 287
varentries_set 10412
varentries_unset 62178
varhigher 56
varlower 28
vars_sort_inplace 147
vars_to_RgXV 147
varstate_restore 58008
varstate_save 139932

Generated by: LCOV version 1.9