Branch Coverage

blib/lib/Async/Stream.pm
Criterion Covered Total %
branch 146 156 93.5


line true false branch
80 1 40 if (ref $generator ne 'CODE') { }
0 79 elsif (defined $args{'prefetch'} and $args{'prefetch'} < 0) { }
114 106 28 @{$items;} ? :
139 0 1 if ($prefetch < 0)
175 1 1 if (ref $action ne 'CODE')
183 3 1 if (@_) { }
211 1 2 if ($async_opt eq 'async')
215 1 2 if (ref $predicate ne 'CODE')
224 6 2 if (@_) { }
227 3 3 if ($is_async) { }
230 2 1 if ($is_intresting) { }
237 2 1 if (&$predicate()) { }
249 1 1 $is_async ? :
273 2 2 if ($async_opt eq 'async')
277 1 3 if (ref $transform ne 'CODE')
286 10 4 if (@_) { }
288 7 3 if ($is_async) { }
299 2 1 $is_async ? :
315 1 1 unless ($stream->isa('Async::Stream'))
325 6 2 if (@_) { }
1 1 elsif (@streams) { }
351 1 2 if ($skip < 0)
355 1 1 if ($skip) { }
360 3 1 if (@_) { }
361 1 2 if ($skip-- > 0) { }
390 1 3 if ($limit < 0)
395 1 2 if ($limit) { }
400 1 1 if $limit-- <= 0
425 1 1 if (ref $comporator ne 'CODE')
439 3 1 if ($is_sorted) { }
440 2 1 @stream_items ? :
445 3 1 if (@_) { }
449 1 0 if (@stream_items) { }
487 3 2 if (ref $cut ne 'CODE' or ref $comporator ne 'CODE')
500 3 9 if (@sorted_array) { }
503 2 7 if (not defined $prev) { }
505 1 1 if (@_) { }
515 5 2 if (@_) { }
524 2 3 if ($is_cut) { }
538 1 1 if (@cur_slice) { }
571 1 2 if (ref $comporator ne 'CODE')
579 3 1 if ($stream->isa('Async::Stream')) { }
590 8 0 if (@{$iterators[$i];} == 1)
594 6 2 if (@_) { }
601 7 1 if ($requested_item == 0)
613 6 1 if (@iterators) { }
641 1 1 if (ref $predicat ne 'CODE')
654 0 11 if ($is_for_branch and @branch_items) { }
3 15 elsif (not $is_for_branch and @self_items) { }
661 6 2 if (@_) { }
670 3 3 if ($is_for_branch and not $is_branch_item) { }
0 3 elsif (not $is_for_branch and $is_branch_item) { }
700 1 2 if (ref $to_key ne 'CODE')
711 21 3 if (@_) { }
718 14 7 if (exists $index_of{$key}) { }
752 1 23 if (ref $return_cb ne 'CODE')
763 71 23 if (@_) { }
790 1 1 if (ref $action ne 'CODE')
799 3 1 if (@_)
827 1 8 if (ref $return_cb ne 'CODE' or ref $code ne 'CODE')
836 8 0 if (@_) { }
842 16 8 if (@_) { }
878 1 1 if (ref $return_cb ne 'CODE')
901 1 2 if (ref $return_cb ne 'CODE')
905 2 2 $a < $b ? :
924 1 2 if (ref $return_cb ne 'CODE')
928 2 2 $a > $b ? :
945 1 1 if (ref $return_cb ne 'CODE')
955 3 1 if (@_)
984 5 1 if (@_) { }
986 1 4 if (&$predicat()) { }
1009 2 57 if ($prefetch) { }
1030 0 10 if (@responses_cache) { }
1036 6 4 if (not $is_exhausted) { }
2 4 elsif (not $item_requested and @requests_queue) { }
1041 8 10 if (@_) { }
1042 8 0 if (@requests_queue) { }
1049 0 10 if (not $item_requested and @requests_queue)