Branch Coverage

blib/lib/PostScript/Graph/Key.pm
Criterion Covered Total %
branch 49 86 56.9


line true false branch
149 12 1 if (@_ == 1) { }
0 1 elsif (@_ == 2 and $_[0] + 0 > 0) { }
160 0 13 defined $$opt{'graph_paper'} ? :
161 0 13 defined $$o{'gp'} ? :
162 0 13 defined $$opt{'file'} ? :
164 0 13 defined $$opt{'title'} ? :
165 0 13 defined $$opt{'title_font'}{'color'} ? :
166 0 13 defined $$opt{'title_font'}{'font'} ? :
167 0 13 defined $$opt{'title_font'}{'size'} ? :
168 0 13 defined $$opt{'text_font'}{'color'} ? :
169 0 13 defined $$opt{'text_font'}{'font'} ? :
170 0 13 defined $$opt{'text_font'}{'size'} ? :
171 0 13 defined $$opt{'glyph_ratio'} ? :
172 12 1 defined $$opt{'text_width'} ? :
173 1 12 defined $$opt{'background'} ? :
174 0 13 defined $$opt{'outline_color'} ? :
175 0 13 defined $$opt{'outline_width'} ? :
179 0 13 if (defined $$o{'items'}) { }
182 0 13 unless $$opt{'num_items'}
186 4 9 defined $$opt{'spacing'} ? :
187 0 13 defined $$opt{'vert_spacing'} ? :
188 0 13 defined $$opt{'horz_spacing'} ? :
189 12 1 defined $$opt{'icon_width'} ? :
190 12 1 defined $$opt{'icon_height'} ? :
193 1 12 $$o{'dyicon'} > $$o{'tsize'} ? :
196 0 13 unless defined $$opt{'max_height'}
201 0 13 unless $height > 0
213 6 219 if ($sofar >= $height)
215 0 6 if $sofar > $max
221 3 222 if ($isize > $itemh) { }
227 116 109 if $sofar > $max
382 13 0 if (defined $gp)
386 0 13 unless ref $$o{'gp'} eq 'PostScript::Graph::Paper'
429 0 220 unless defined $label
430 0 220 unless defined $code
431 0 220 if defined $ps
432 0 220 unless ref $$o{'ps'} eq 'PostScript::File'
434 0 220 $$o{'items'} ? :
527 0 0 @_ ? :
541 0 0 unless defined $nchars
545 0 0 if (length $text <= $nchars) { }
552 0 0 if $1
571 13 0 unless $ps->has_function($name)