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 16741-1378b1c) Lines: 184 449 41.0 %
Date: 2014-08-17 Functions: 26 57 45.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 68 303 22.4 %

Function Name Sort by function name Hit count Sort by hit count
TeX_define 0
TeX_define2 0
call_f2 1563
compare_name 0
default0 1563
default_gp_data 862
defaults_list 0
get_int 143
get_sep 1988
get_uint 1647
getrealprecision 0
gp_get_color 0
init_fmt 862
init_hist 872
init_path 1724
init_pp 862
my_int 1790
open_logfile 0
pari_is_default 20
safe_mul 10
sd_PATH 0
sd_TeXstyle 0
sd_colors 0
sd_compatible 5
sd_datadir 9
sd_debug 0
sd_debugfiles 0
sd_debugmem 0
sd_factor_add_primes 0
sd_factor_proven 0
sd_format 0
sd_histsize 10
sd_log 0
sd_logfile 0
sd_nbthreads 0
sd_new_galois_format 10
sd_output 0
sd_parisize 20
sd_parisizemax 0
sd_path 0
sd_prettyprinter 0
sd_primelimit 10
sd_realprecision 1587
sd_secure 0
sd_seriesprecision 15
sd_simplify 0
sd_sopath 0
sd_strictargs 5
sd_strictmatch 0
sd_string 0
sd_threadsize 0
sd_threadsizemax 0
sd_toggle 143
sd_ulong 60
sd_ulong_init 1647
setdefault 1563
setrealprecision 0

Generated by: LCOV version 1.9