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 - graph - plotport.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21352-4be8729) Lines: 1020 1206 84.6 %
Date: 2017-11-23 06:21:03 Functions: 83 102 81.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
_psdraw 0
cpd 0
get_plot_null 0
pari_get_svgplot 0
pari_plot_by_file 0
plotpointsize 0
plotrecth0 0
plotrecthraw 0
rect2svg 0
svg_color 0
svg_head 0
svg_line 0
svg_lines 0
svg_point 0
svg_points 0
svg_rect 0
svg_rescale 0
svg_tail 0
svg_text 0
plothsizes 4
plotcolor 8
plothraw 8
rectsplines 8
plotbox 11
plotline 11
plotpoint 11
plotpointtype 11
plotrbox 11
plotrline 11
plotrmove 11
plotrpoint 11
plotscale 11
psplothraw 11
psploth 18
psploth0 18
gtodblList 19
plothraw_i 19
plotrecthraw_i 19
plotclip 20
plotlines 22
plotpoint0 22
plotpoints 22
plotpoints0 22
ps_points 25
plotdraw 28
psdraw 29
plotcopy 36
ploth 40
ploth0 40
ps_lines 40
plotcursor 47
plotinit 53
gendraw 57
_psdraw_scale 58
gen_draw 58
pari_get_psplot 58
rect2ps 58
rect2ps_i 58
ps_rect 69
plotscale0 72
plotmove 77
rectbox0 83
initrect_get_arg 106
clipline 120
rectline0 130
ps_string 138
plotkill 167
initrect_i 171
put_label 244
rectticks 244
plotstring 266
cp 460
plotmove0 501
ps_point 908
pari_kill_plot_engine 1536
pari_set_plot_engine 1536
pari_init_graphics 1538
ps_line 3917
color_to_rgb 4218
colorname_to_rgb 4218
ps_sc 4218
get_xy_from_vec2 6712
get_xy_from_vec 8056
plotrecth 9976
rectlines0 10033
plotrecth_i 10034
plotrecthin 10034
plotrecthrawin 10037
plotlinetype 10202
set_range 20074
check_rect_init 21949
check_rect 22128
Rchain 27961
freeobj 28281
DTOL 47450
single_recursion 91404
Appendx 137976
param_recursion 138104
get_xy 138192
Appendy 164976
rmiddle 208940
spline_eval 234176

Generated by: LCOV version 1.11