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 22303-eb3e11d) Lines: 618 655 94.4 %
Date: 2018-04-21 06:16:28 Functions: 98 101 97.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
IS_ID 380
_given_value 3143
_higher 49
_lower 42
addhelp 50
alias0 28
andpari 268618
bin_number_len 38
bin_read 28
binary_read 56
chartoGENstr 342087
check_name 8
check_proto 1863536
cmp_by_var 5136
compile_str 10782
dec_number_len 3656875
dec_read 7962561
dec_read_more 1003415
dec_strtoi_len 1003415
delete_var 73653
do_alias 6065632
eval_mnemonic 28
exponent 75551
fetch_entry 385244
fetch_entry_raw 6191604
fetch_user_var 385130
fetch_var 43558
fetch_var_higher 33563
fetch_var_value 7
fill_hashtable_single 1880754
findentry 6471947
gadd1e 25675332
gadde 2648794
gdive 56
gdivente 7
gdivrounde 7
gmode 7
gmule 80010
gp_read_str 0
gpolvar 987
gshift_right 1392
gshiftle 7
gshiftre 7
gsub1e 14
gsube 15455356
hashvalue 1880754
hashvalue_raw 6471947
hex_number_len 54
hex_read 28
ifpari 12854821
ifpari_multi 31276
ifpari_void 39975988
initep 26614
insertep 1907284
install 8
int_read 7877687
is_entry 279117
isbin 35405133
ishex 35405084
kill0 18
killep 18
name_var 252
number 8038112
orpari 16420103
pari_add_function 0
pari_fill_hashtable 4696
pari_is_default 1226
pari_isbdigit 1484
pari_lex 29112579
pari_pthread_init_varstate 10493
pari_thread_init_varstate 87488
pari_var_close 1564
pari_var_create 28175
pari_var_init 1566
pari_var_next 260
pari_var_next_temp 0
readseq 4709
real_0_digits 175
real_read 82966
real_read_more 1964
skipconstante 7675083
skipdigits 7677642
skipexponent 7674248
skipstring 1107711
strntoGENstr 451088
strtoGENstr 341685
strtobin_len 56
strtoi 7877687
strtor 82966
type0 23479
var_register 84
var_restore 95781
varentries_reset 336
varentries_set 8424
varentries_unset 11876
varhigher 77
varlower 28
vars_sort_inplace 868
vars_to_RgXV 154
varstate_restore 8621
varstate_save 100987

Generated by: LCOV version 1.11