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.1 lcov report (development 22726-9e20c6a88) Lines: 603 655 92.1 %
Date: 2018-06-23 05:36:28 Functions: 96 101 95.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
check_name 0
gp_read_str 0
install 0
pari_add_function 0
pari_var_next_temp 0
fetch_var_value 7
gdivente 7
gdivrounde 7
gmode 7
gshiftle 7
gshiftre 7
gsub1e 14
kill0 14
killep 14
alias0 28
bin_read 28
eval_mnemonic 28
hex_read 28
varlower 28
bin_number_len 38
_lower 42
addhelp 42
_higher 49
hex_number_len 54
binary_read 56
gdive 56
strtobin_len 56
varhigher 77
var_register 84
vars_to_RgXV 154
real_0_digits 175
name_var 252
pari_var_next 252
varentries_reset 336
IS_ID 380
gpolvar 987
vars_sort_inplace 987
pari_is_default 1224
gshift_right 1392
pari_isbdigit 1484
pari_var_init 1545
pari_var_close 1595
real_read_more 1985
_given_value 3143
pari_fill_hashtable 4625
readseq 4697
cmp_by_var 5136
varentries_set 8410
varstate_restore 8742
compile_str 10738
pari_pthread_init_varstate 11058
varentries_unset 12004
type0 23520
initep 26794
pari_var_create 28591
ifpari_multi 31283
fetch_var_higher 34840
fetch_var 44088
delete_var 75450
exponent 75551
gmule 79933
real_read 83134
strtor 83134
varstate_save 105468
pari_thread_init_varstate 110674
var_restore 119393
andpari 268744
is_entry 288588
chartoGENstr 342045
strtoGENstr 349968
fetch_user_var 386025
fetch_entry 386123
strntoGENstr 462856
dec_read_more 922829
dec_strtoi_len 922829
skipstring 1107914
check_proto 1844670
fill_hashtable_single 1861665
hashvalue 1861665
insertep 1888375
gadde 2648567
dec_number_len 3473543
do_alias 6112178
fetch_entry_raw 6229439
findentry 6519251
hashvalue_raw 6519251
skipexponent 7685937
skipconstante 7686822
skipdigits 7689423
int_read 7808669
strtoi 7808669
dec_read 7893732
number 7969283
ifpari 12855418
gsube 15455356
orpari 16420103
gadd1e 25675244
pari_lex 29184007
ishex 35386245
isbin 35386294
ifpari_void 39975665

Generated by: LCOV version 1.13