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

Generated by: LCOV version 1.13