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.1 lcov report (development 22726-9e20c6a88) Lines: 286 341 83.9 %
Date: 2018-06-23 05:36:28 Functions: 26 31 83.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
dbg_down 0
gp_ask_confirm 0
read_arg 0
read_arg_equal 0
read_main 0
gp_head 2
print_shortversion 2
usage 2
free_trivial_stack 4
init_trivial_stack 4
normal_output 4
record_default 6
dbg_err 7
pari_breakpoint 7
dbg_up 14
whatnow0 35
break_loop_prompt 63
break_loop 91
gp_err_recover 291
init_test 1518
gp_quit 1535
read_opt 1545
main 1547
is_interactive 1588
gp_pre_recover 8674
gp_main_loop 10477
test_output 39254
gp_output 39258
is_silent 57999
reset_ctrlc 92549
test_is_interactive 172983

Generated by: LCOV version 1.13