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 21913-852521c) Lines: 619 655 94.5 %
Date: 2018-02-19 06:15:51 Functions: 99 101 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
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
IS_ID 380
vars_sort_inplace 812
gpolvar 987
pari_is_default 1226
gshift_right 1392
pari_isbdigit 1484
pari_var_close 1557
pari_var_init 1559
real_read_more 1943
_given_value 3143
readseq 4394
pari_fill_hashtable 4675
cmp_by_var 5129
varentries_set 8396
varstate_restore 8441
pari_pthread_init_varstate 10508
compile_str 10738
varentries_unset 11717
pari_var_create 22529
type0 23472
initep 26161
fetch_var_higher 30335
ifpari_multi 31276
fetch_var 40251
delete_var 70532
exponent 75544
gmule 80010
real_read 82917
strtor 82917
pari_thread_init_varstate 87750
var_restore 95419
varstate_save 99257
andpari 268618
is_entry 278925
chartoGENstr 339280
strtoGENstr 342101
fetch_user_var 384297
fetch_entry 384411
strntoGENstr 449456
dec_read_more 867982
dec_strtoi_len 867982
skipstring 1107281
check_proto 1836498
fill_hashtable_single 1853639
hashvalue 1853639
insertep 1879716
gadde 2373646
dec_number_len 3060473
do_alias 5883142
fetch_entry_raw 6009122
findentry 6289273
hashvalue_raw 6289273
skipexponent 7486076
skipconstante 7486911
skipdigits 7489421
int_read 7722929
strtoi 7722929
dec_read 7807733
number 7883277
ifpari 12830430
gsube 15171541
orpari 16420103
gadd1e 25675244
pari_lex 28571250
ishex 34719468
isbin 34719517
ifpari_void 39910885

Generated by: LCOV version 1.11