Condition Coverage

blib/lib/Ryu/Source.pm
Criterion Covered Total %
condition 95 167 56.8


and 3 conditions

line !l l&&!r l&&r condition
442 0 0 0 $args{'continuous'} and length $in < 16
592 0 0 4 builtin::blessed($item) and $item->isa(__PACKAGE__)
648 0 0 0 $size and $size > 0
672 0 0 1 $size and $size > 0
679 4 0 1 @batch >= $size and my(@items) = splice(@batch, 0, $size)
824 103 0 6 @pending >= $args{'high'} and $self
103 4 2 @pending >= $args{'high'} and $self and not $self->is_paused($src)
830 97 12 69 @pending and not $src->is_paused
109 0 69 @pending and not $src->is_paused and @{$self->{'children'};}
831 6 101 2 @pending <= $args{'low'} and $self->is_paused($src)
838 95 0 2 $self->_completed->is_ready and not $src->_completed->is_ready
843 0 29 0 $self and $self->is_paused($src)
964 0 0 0 (my $f = $queue->push($_))->is_ready and not $self->is_paused
1025 0 1 1 $low and $self->size <= $low
1038 0 4 1 $high and $buf->size >= $high
1039 0 3 2 $low and $buf->size <= $low
1286 3 0 0 builtin::blessed($rslt) && $rslt->isa('Future')
1338 0 1 2 $_ and not $_->is_ready
1349 0 8 5 not $paused and $high
8 4 1 not $paused and $high and keys %pending >= $high
1355 9 0 4 @pending and not $src_completed->is_ready
1362 9 2 1 $paused and keys %pending <= $low
1368 1 3 2 $all_finished and not $src_completed->is_ready
1629 0 0 1 builtin::blessed($condition) and $condition->isa("Future")
1668 0 0 0 builtin::blessed($condition) and $condition->isa("Ryu::Source")
1681 0 0 0 builtin::blessed($condition) and $condition->isa("Future")
1868 1 1 6 defined $max and $max > $_
1888 1 3 4 defined $min and $min < $_
1972 1 7 7 defined $v and $v =~ /$args{$k}/
1974 4 3 5 defined $v and &List::Util::any(sub { $v eq $_; } , @{$args{$k};})
1982 0 10 3 defined $args{$k} && $v eq $args{$k}
2393 0 0 0 builtin::blessed($sub) and $sub->isa("Ryu::Source")

or 2 conditions

line l !l condition
219 119 104 $args{'label'} //= "unknown"
220 0 223 $args{'on_item'} //= []
221 0 223 $args{'on_batch'} //= []
344 2 0 $ENCODER{$type} || $self->can('encode_' . $type) || die("unsupported encoding $type")
368 0 0 $DECODER{$type} || $self->can('decode_' . $type) || die("unsupported encoding $type")
757 0 0 $item->$_ // ""
808 13 17 $args{'low'} //= 10
1095 3 2 $seen{$idx} ||= 1
1145 0 0 $seen{$idx} ||= 1
1323 1 4 (delete $args{'low'} // $high) // 0
1575 1 0 $count //= 0
1596 1 0 $count //= 0
1710 2 0 $count //= 0
1851 1 0 $count || 1
1936 1 0 $count || 1
2350 17 29 $args{'finish_source'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
488 0 0 0 $delim //= $/
631 0 0 0 $delim //= qr//
697 0 0 0 $delim //= $/
807 13 0 17 $args{'low'} //= $args{'high'}
809 13 17 0 $args{'high'} //= $args{'low'}
815 0 2 27 $src->_completed->is_ready or @pending
1323 1 0 4 delete $args{'low'} // $high
1331 4 0 1 %pending or $src_completed->is_ready
1631 2 1 2 $reached ||= &$condition($_)
1683 0 0 0 $reached ||= &$condition($_)
1928 8 1 0 $min //= $_
1929 8 1 0 $max //= $_
2350 9 17 29 $src->is_ready or not $args{'finish_source'} // 1