Branch Coverage

blib/lib/Thread/Queue/Priority.pm
Criterion Covered Total %
branch 30 60 50.0


line true false branch
32 0 22 if ($$self{'_ended'})
38 4 18 defined $priority ? :
42 6 16 unless exists $$queue{$priority}
48 22 0 if push @{$$self{'_queue'}{$priority};}, shared_clone($item)
57 0 6 if $$self{'_ended'} and not $$self{'_count'}
79 5 7 scalar @_ ? :
83 6 1 if $$self{'_count'} > $count or $$self{'_ended'}
86 0 7 if $$self{'_ended'}
89 7 0 if ($count == 1)
91 7 0 if (scalar @{$$queue{$priority};})
103 0 0 if (scalar @{$$queue{$priority};})
118 5 1 scalar @_ ? :
121 1 0 if ($count == 1)
123 0 1 if (scalar @{$$queue{$priority};})
135 0 0 if (scalar @{$$queue{$priority};})
151 0 0 scalar @_ ? :
152 0 0 scalar @_ ? :
157 0 0 if $timeout < 322000000
161 0 0 unless cond_timedwait %{$self;}, $timeout
163 0 0 if $$self{'_count'} > $count or $$self{'_ended'}
175 16 2 scalar @_ ? :
179 15 13 if ($index < $size) { }
195 3 13 if (not defined $index && looks_like_number $index or int $index != $index)
200 1 2 unless defined $index
211 6 0 if (not defined $count && looks_like_number $count or int $count != $count or $count < 1)
216 2 8 unless defined $count
227 0 0 unless (defined $timeout and looks_like_number $timeout)
232 0 0 unless defined $timeout
243 0 4 if (not defined $priority && looks_like_number $priority or int $priority != $priority or $priority < 0)
248 0 0 unless defined $priority