Branch Coverage

lib/Data/CloudWeights.pm
Criterion Covered Total %
branch 45 68 66.1


line true false branch
79 1 5 unless $tag
82 4 1 defined $count ? :
87 3 2 if (not exists $self->_index->{$tag}) { }
99 2 0 if (defined $value)
103 1 1 if $tag_value and ref $tag_value ne 'ARRAY'
107 1 1 if ($tag_value) { }
113 2 3 if $count > $self->max_count
114 1 4 if $self->min_count == -1
115 0 5 if $count < $self->min_count
131 1 6 if $ntags == 0
133 1 5 if ($ntags == 1)
158 1 10 if $self->limit and @{$out;} == $self->limit
170 1 0 if $self->cold_colour and $self->hot_colour
181 1 0 $col1 =~ /^\#/ ? :
185 0 1 if $cnt < 0
187 0 0 wantarray ? :
0 1 if $cnt <= 1
188 0 0 wantarray ? :
0 1 if $cnt == 2
203 0 0 $clockwise ? :
0 1 $hd < 0 ? :
0 1 uc $col1 eq uc $col2 ? :
209 0 10 if $h1 > 1
1 9 if $h1 < 0
216 1 0 wantarray ? :
223 1 6 unless my $field = $self->sort_field
225 0 6 if ref $field
233 1 5 $field ne 'tag' ? :
239 0 2 if $i == 0
243 0 2 if $s == 0
254 0 10 if $i == 0
0 10 if $s == 0
264 0 20 $_ > 1 ? :
10 20 $_ < 0 ? :