Branch Coverage

lib/Games/Nonogram/Clue.pm
Criterion Covered Total %
branch 63 124 50.8


line true false branch
23 5 3 if ($options{'blocks'})
24 0 5 unless $options{'blocks'}
30 3 0 unless (shift())->{'id'}
48 0 8 if (not @blocks) { }
78 0 236 unless (shift())->{'blocks'}
92 0 3 if ($self->debug)
104 3 117 if ($block->must_have($ct)) { }
38 79 elsif ($block->might_have($ct)) { }
119 0 3 defined wantarray ? :
125 0 0 unless ($$self{'is_done'})
126 0 0 unless $self->line->is_done
141 0 0 if ($value != 0)
142 0 0 if $self->debug
149 0 0 if ($value != 1)
150 0 0 if $self->debug
158 0 0 if ($value != 0)
159 0 0 if $self->debug
174 1 7 unless ref $block
179 2 5 if $block->left < $left
182 1 6 if $block->right > $right
184 1 6 if ($block->left == $id)
189 2 5 if ($block->right == $id)
206 42 0 unless ref $block
211 0 0 if $block->left + $offset > $left
214 0 0 if $block->right - $offset < $right
220 0 0 if (defined $value) { }
221 0 0 if ($value == 0) { }
0 0 elsif ($value == 1) { }
234 77 270 if ($block->might_have($id))
235 10 67 if $hit
240 57 73 $hit ? :
246 7 0 if (not $mode) { }
0 0 elsif ($mode eq 'more') { }
256 31 59 if (not $block) { }
50 9 elsif (ref $block) { }
261 43 7 if ($value == -1) { }
0 7 elsif ($value == 0) { }
7 0 elsif ($value == 1) { }
262 5 38 if $block->must_have($ct)
268 1 6 unless $block->must_have($ct)
279 6 13 if $block->left > $left
286 0 1 if ($left > $self->size)
297 4 15 if $block->right < $right
305 0 2 if ($right < 1)
318 9 67 if ($value == 1) { }
339 0 0 if ($value == 1) { }
0 0 elsif ($value == 0) { }
343 0 0 if ($toggle)
349 0 0 if ($toggle)
353 0 0 if (@blocks == $self->blocks)
356 0 0 if $block->left < $$href{'from'}
357 0 0 if $block->right > $$href{'to'}
377 2 4 unless ($free)
380 0 9 if $clone->value($pos + $ct) == 0
384 1 2 unless ($pos > $self->size)
385 0 1 if $clone->value($pos) == 1
391 3 3 unless (@blocks)
393 0 0 if $clone->value($ct) == 1
407 0 3 if $clone->value($clone_pos) == 1
414 0 14 if $clone->value($clone_pos) == 0
418 5 1 if (not $clone_pos > $self->size) { }
419 0 5 if $clone->value($clone_pos) == 1