Branch Coverage

lib/Games/Nonogram/Block.pm
Criterion Covered Total %
branch 33 42 78.5


line true false branch
32 0 634 if (defined $value)
42 60 976 if (defined $value)
52 65 717 if (defined $value)
62 0 125 if ($self->is_overflowed($value))
79 0 125 if $value > $$self{'line_size'} or $value < 1
81 34 91 unless my $left = $$self{'left'}
82 34 57 unless my $right = $$self{'right'}
84 0 57 if $left > $right
90 105 0 if (@_ == 1) { }
0 0 elsif (@_) { }
98 57 48 if ($self->length > 1)
99 192 142 if $_ > $self->left
100 0 57 unless $$self{'forbidden'}
106 10 64 if ($prev + 1 == $pos)
110 3 61 if ($pos - 1 - ($prev + 1) + 1 < $self->length)
133 222 278 if $$self{'forbidden'}{$id}
135 145 133 $self->left > $id || $self->right < $id ? :
141 61 145 if $$self{'forbidden'}{$id}
145 124 21 $self->left + $offset < $id || $self->right - $offset > $id ? :
153 0 86 if ($length > $self->length) { }
4 82 elsif ($length == $self->length) { }