Branch Coverage

blib/lib/Async/Stream.pm
Criterion Covered Total %
branch 134 144 93.0


line true false branch
80 1 41 if (ref $generator ne 'CODE') { }
0 81 elsif (defined $args{'prefetch'} and $args{'prefetch'} < 0) { }
114 103 27 @{$items;} ? :
139 0 1 if ($prefetch < 0)
175 1 22 if (ref $return_cb ne 'CODE')
186 69 22 if (@_) { }
213 1 1 if (ref $action ne 'CODE')
222 3 1 if (@_)
245 1 1 if (ref $action ne 'CODE')
253 3 1 if (@_) { }
279 1 1 if (ref $is_intresting ne 'CODE')
288 3 1 if (@_) { }
290 2 1 if (&$is_intresting()) { }
317 1 1 if (ref $transform ne 'CODE')
326 3 1 if (@_) { }
357 1 2 if (ref $transform ne 'CODE')
366 7 3 if (@_) { }
397 1 8 if (ref $return_cb ne 'CODE' or ref $code ne 'CODE')
406 8 0 if (@_) { }
412 16 8 if (@_) { }
448 1 1 if (ref $return_cb ne 'CODE')
471 1 2 if (ref $return_cb ne 'CODE')
475 2 2 $a < $b ? :
494 1 2 if (ref $return_cb ne 'CODE')
498 2 2 $a > $b ? :
514 1 1 unless ($stream->isa('Async::Stream'))
524 6 2 if (@_) { }
1 1 elsif (@streams) { }
552 1 1 if (ref $return_cb ne 'CODE')
562 3 1 if (@_)
584 1 2 if ($skip < 0)
588 1 1 if ($skip) { }
593 3 1 if (@_) { }
594 1 2 if ($skip-- > 0) { }
623 1 3 if ($limit < 0)
628 1 2 if ($limit) { }
633 1 1 if $limit-- <= 0
658 1 1 if (ref $comporator ne 'CODE')
672 3 1 if ($is_sorted) { }
673 2 1 @stream_items ? :
678 3 1 if (@_) { }
682 1 0 if (@stream_items) { }
720 3 2 if (ref $cut ne 'CODE' or ref $comporator ne 'CODE')
733 3 9 if (@sorted_array) { }
736 2 7 if (not defined $prev) { }
738 1 1 if (@_) { }
748 5 2 if (@_) { }
757 2 3 if ($is_cut) { }
771 1 1 if (@cur_slice) { }
803 1 2 if (ref $comporator ne 'CODE')
811 2 1 if ($stream->isa('Async::Stream')) { }
822 8 0 if (@{$iterators[$i];} == 1)
826 6 2 if (@_) { }
833 7 1 if ($requested_item == 0)
845 6 1 if (@iterators) { }
881 0 11 if ($is_truth_branch and @truth_items) { }
3 15 elsif (not $is_truth_branch and @false_items) { }
888 6 2 if (@_) { }
897 3 3 if ($is_truth_branch and not $is_truth) { }
0 3 elsif (not $is_truth_branch and $is_truth) { }
936 5 1 if (@_) { }
938 1 4 if (&$predicat()) { }
964 1 2 if (ref $to_key ne 'CODE')
975 21 3 if (@_) { }
982 14 7 if (exists $index_of{$key}) { }
1008 2 55 if ($prefetch) { }
1029 0 10 if (@responses_cache) { }
1035 6 4 if (not $is_exhausted) { }
2 4 elsif (not $item_requested and @requests_queue) { }
1040 8 10 if (@_) { }
1041 8 0 if (@requests_queue) { }
1048 0 10 if (not $item_requested and @requests_queue)