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 - gp - gp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 210 342 61.4 %
Date: 2017-04-28 05:33:48 Functions: 21 31 67.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
break_loop 78
break_loop_prompt 54
dbg_down 0
dbg_err 6
dbg_up 12
free_trivial_stack 1
gp_ask_confirm 0
gp_err_recover 190
gp_head 0
gp_main_loop 8154
gp_output 25832
gp_pre_recover 6758
gp_quit 1224
init_test 1212
init_trivial_stack 1
is_interactive 1260
is_silent 38518
main 1225
normal_output 0
pari_breakpoint 6
print_shortversion 0
read_arg 0
read_arg_equal 0
read_main 0
read_opt 1225
record_default 0
reset_ctrlc 63442
test_is_interactive 118534
test_output 25832
usage 0
whatnow0 30

Generated by: LCOV version 1.11