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 - default.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.1 lcov report (development 22726-9e20c6a88) Lines: 341 554 61.6 %
Date: 2018-06-23 05:36:28 Functions: 40 67 59.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
TeX_define 0
TeX_define2 0
compare_name 0
defaults_list 0
getrealprecision 0
open_logfile 0
sd_PATH 0
sd_TeXstyle 0
sd_compatible 0
sd_debugfiles 0
sd_debugmem 0
sd_factor_add_primes 0
sd_factor_proven 0
sd_log 0
sd_logfile 0
sd_nbthreads 0
sd_output 0
sd_parisizemax 0
sd_path 0
sd_prettyprinter 0
sd_secure 0
sd_simplify 0
sd_sopath 0
sd_strictmatch 0
sd_threadsize 0
sd_threadsizemax 0
setrealprecision 0
sd_colors 4
sd_string 4
sd_format 7
sd_strictargs 7
sd_histsize 14
sd_new_galois_format 14
sd_primelimit 14
sd_realbitprecision 14
sd_datadir 20
err_intarray 21
sd_debug 21
gp_get_color 28
sd_seriesprecision 28
get_int 30
sd_toggle 30
parse_intarray 35
sd_intarray 35
sd_parisize 195
sd_ulong 464
sd_realprecision 934
default0 1178
call_f2 1196
setdefault 1196
get_uint 1412
sd_ulong_init 1412
my_int 1442
pari_init_paths 1535
default_gp_data 1545
init_fmt 1545
init_graphs 1545
init_help 1545
init_pp 1545
pari_default_path 1545
init_hist 1559
pari_close_paths 1595
get_sep 1684
expand_path 3070
init_path 3090
delete_path 3190
delete_dirs 6260

Generated by: LCOV version 1.13