Branch Coverage

blib/lib/Games/Roguelike/Console.pm
Criterion Covered Total %
branch 16 54 29.6


line true false branch
135 3 1 if ($DUMPFILE)
137 3 0 $DUMPFILE ? :
140 1 0 unless defined $opt{'type'}
142 1 0 if ($opt{'type'} eq '')
143 0 1 if $OK_WIN32
144 0 1 if $OK_CURSES
147 1 0 if $opt{'type'} eq ''
149 1 0 if ($opt{'type'} eq 'ansi')
152 0 0 if ($opt{'type'} =~ /dump:?(.*):?(.*)/)
155 0 0 if ($opt{'type'} eq 'win32')
158 0 0 if ($opt{'type'} eq 'curses')
181 0 0 unless defined $attr
182 0 0 if ($parsedef or not $COLORMAP{$pkg}{$attr})
185 0 0 if $attr =~ s/on[\s_]+(.*)$//
188 0 0 if $fg =~ s/\s*bold\s*//
189 0 0 unless $fg
193 0 0 if $fg =~ /gray|grey/
194 0 0 if $bg =~ /gray|grey/
196 0 0 if $parsedef
211 0 189 if ($color) { }
224 0 0 if ($color) { }
236 0 2 if defined $x
237 0 2 if defined $y
238 0 2 if defined $w
239 0 2 if defined $h
245 2 0 if (@_)
246 0 2 $_[0] ? :