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.10.0 lcov report (development 21352-4be8729) Lines: 640 719 89.0 %
Date: 2017-11-23 06:21:03 Functions: 98 100 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
gp_read_str 0
pari_add_function 0
fetch_var_value 7
gdivente 7
gdivrounde 7
gmode 7
gshiftle 7
gshiftre 7
check_name 8
install 8
gsub1e 14
kill0 18
killep 18
alias0 28
bin_read 28
eval_mnemonic 28
hex_read 28
varlower 28
bin_number_len 38
_lower 42
_higher 49
addhelp 50
hex_number_len 54
binary_read 56
chartoGENstr 56
gdive 56
strtobin_len 56
varhigher 77
var_register 84
pari_var_next_temp 147
vars_to_RgXV 154
real_0_digits 168
name_var 252
pari_var_next 260
varentries_reset 336
vars_sort_inplace 574
gpolvar 728
pari_is_default 1163
gshift_right 1392
pari_isbdigit 1484
pari_var_close 1536
pari_var_init 1538
real_read_more 1915
_given_value 3129
readseq 4394
pari_fill_hashtable 4612
cmp_by_var 5122
varstate_restore 8217
varentries_set 8312
compile_str 10108
varentries_unset 11486
pari_pthread_init_varstate 11790
pari_var_create 22326
type0 23409
initep 25629
ifpari_multi 28126
fetch_var_higher 30177
fetch_var 39663
delete_var 69779
exponent 75481
gmule 80010
real_read 82742
strtor 82742
pari_thread_init_varstate 90191
varstate_save 97172
var_restore 98262
andpari 265090
is_entry 265225
strtoGENstr 326607
fetch_user_var 385669
fetch_entry 385783
strntoGENstr 430014
dec_read_more 833090
dec_strtoi_len 833090
skipstring 1106962
check_proto 1779462
fill_hashtable_single 1796372
hashvalue 1796372
insertep 1821917
gadde 2373646
dec_number_len 2996940
do_alias 5847278
fetch_entry_raw 5986487
findentry 6252875
hashvalue_raw 6252875
skipexponent 7477734
skipconstante 7478492
skipdigits 7480890
int_read 7678641
strtoi 7678641
dec_read 7763242
number 7838723
ifpari 12829557
gsube 15171541
orpari 16420089
gadd1e 17164266
pari_lex 28521773
ifpari_void 31388893
ishex 34641949
isbin 34641998

Generated by: LCOV version 1.11