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-bordeaux1.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.8.0 lcov report (development 17589-6eff849) Lines: 210 472 44.5 %
Date: 2015-03-05 Functions: 27 58 46.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 72 298 24.2 %

Function Name Sort by function name Hit count Sort by hit count
TeX_define 0
TeX_define2 0
call_f2 2224
compare_name 0
default0 2224
default_gp_data 2246
defaults_list 0
get_int 1174
get_sep 5726
get_uint 3301
getrealprecision 0
gp_get_color 0
init_fmt 2246
init_graphs 2246
init_help 2246
init_hist 2260
init_path 4492
init_pp 2246
my_int 4475
open_logfile 0
safe_mul 21
sd_PATH 0
sd_TeXstyle 0
sd_colors 0
sd_compatible 0
sd_datadir 13
sd_debug 21
sd_debugfiles 0
sd_debugmem 0
sd_factor_add_primes 0
sd_factor_proven 0
sd_format 0
sd_histsize 14
sd_log 0
sd_logfile 0
sd_nbthreads 0
sd_new_galois_format 14
sd_output 0
sd_parisize 42
sd_parisizemax 0
sd_path 0
sd_prettyprinter 0
sd_primelimit 14
sd_realprecision 3189
sd_secure 0
sd_seriesprecision 21
sd_simplify 0
sd_sopath 0
sd_strictargs 7
sd_strictmatch 0
sd_string 0
sd_threadsize 0
sd_threadsizemax 0
sd_toggle 1174
sd_ulong 112
sd_ulong_init 3301
setdefault 2224
setrealprecision 0

Generated by: LCOV version 1.9