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.0 lcov report (development 20459-9710128) Lines: 264 517 51.1 %
Date: 2017-04-29 05:33:44 Functions: 31 61 50.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
TeX_define 0
TeX_define2 0
call_f2 832
compare_name 0
default0 832
default_gp_data 1225
defaults_list 0
delete_dirs 3672
get_int 136
get_sep 1276
get_uint 932
getrealprecision 0
gp_expand_path 1224
gp_get_color 0
init_fmt 1225
init_graphs 1225
init_help 1225
init_hist 1237
init_path 2450
init_pp 1225
my_int 1068
open_logfile 0
pari_default_path 1225
sd_PATH 0
sd_TeXstyle 0
sd_colors 0
sd_compatible 0
sd_datadir 12
sd_debug 18
sd_debugfiles 0
sd_debugmem 0
sd_factor_add_primes 0
sd_factor_proven 0
sd_format 6
sd_histsize 12
sd_log 0
sd_logfile 0
sd_nbthreads 0
sd_new_galois_format 12
sd_output 0
sd_parisize 106
sd_parisizemax 0
sd_path 0
sd_prettyprinter 0
sd_primelimit 12
sd_realbitprecision 6
sd_realprecision 760
sd_secure 0
sd_seriesprecision 18
sd_simplify 0
sd_sopath 0
sd_strictargs 6
sd_strictmatch 0
sd_string 0
sd_threadsize 0
sd_threadsizemax 0
sd_toggle 136
sd_ulong 166
sd_ulong_init 932
setdefault 832
setrealprecision 0

Generated by: LCOV version 1.11