Condition Coverage

blib/lib/Ryu/Source.pm
Criterion Covered Total %
condition 83 155 53.5


and 3 conditions

line !l l&&!r l&&r condition
437 0 0 0 $args{'continuous'} and length $in < 16
587 0 0 4 &Scalar::Util::blessed($item) and $item->isa('Ryu::Source')
644 0 0 0 $size and $size > 0
668 0 0 1 $size and $size > 0
675 4 0 1 @batch >= $size and my(@items) = splice(@batch, 0, $size)
819 11 0 6 @pending >= $args{'high'} and $self
11 4 2 @pending >= $args{'high'} and $self and not $self->is_paused($src)
825 7 10 11 @pending and not $src->is_paused
17 0 11 @pending and not $src->is_paused and @{$self->{'children'};}
827 8 7 2 @pending < $args{'low'} and $self->is_paused($src)
832 17 0 0 $self->_completed->is_ready and not @pending
17 0 0 $self->_completed->is_ready and not @pending and not $src->_completed->is_ready
970 0 1 1 $low and $self->size <= $low
983 0 4 1 $high and $buf->size >= $high
984 0 3 2 $low and $buf->size <= $low
1205 3 0 0 &Scalar::Util::blessed($rslt) && $rslt->isa('Future')
1257 0 1 2 $_ and not $_->is_ready
1267 8 4 1 $high and keys %pending >= $high
12 0 1 $high and keys %pending >= $high and not $src->is_paused
1270 9 0 4 @pending and not $src_completed->is_ready
1277 8 2 2 $low and keys %pending <= $low
10 1 1 $low and keys %pending <= $low and $src->is_paused
1280 1 3 2 $all_finished and not $src_completed->is_ready
1541 0 0 1 &Scalar::Util::blessed($condition) and $condition->isa('Future')
1580 0 0 0 &Scalar::Util::blessed($condition) and $condition->isa('Ryu::Source')
1593 0 0 0 &Scalar::Util::blessed($condition) and $condition->isa('Future')
1780 1 1 6 defined $max and $max > $_
1800 1 3 4 defined $min and $min < $_
1884 1 7 7 defined $v and $v =~ /$args{$k}/
1886 4 3 5 defined $v and &List::Util::any(sub { $v eq $_; } , @{$args{$k};})
1894 0 10 3 defined $args{$k} && $v eq $args{$k}
2260 0 0 0 &Scalar::Util::blessed($sub) and $sub->isa('Ryu::Source')

or 2 conditions

line l !l condition
219 69 63 $args{'label'} //= 'unknown'
339 2 0 $ENCODER{$type} || $self->can('encode_' . $type) || die("unsupported encoding $type")
363 0 0 $DECODER{$type} || $self->can('decode_' . $type) || die("unsupported encoding $type")
753 0 0 $item->$_ // ''
804 3 0 $args{'low'} //= 10
1014 3 2 $seen{$idx} ||= 1
1064 0 0 $seen{$idx} ||= 1
1487 1 0 $count //= 0
1508 1 0 $count //= 0
1622 2 0 $count //= 0
1763 1 0 $count || 1
1848 1 0 $count || 1
2095 0 3 $self->{'on_item'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
483 0 0 0 $delim //= $/
627 0 0 0 $delim //= qr//
693 0 0 0 $delim //= $/
803 3 0 0 $args{'low'} //= $args{'high'}
805 3 0 0 $args{'high'} //= $args{'low'}
811 0 0 1 $src->_completed->is_ready or @pending
1250 4 0 1 %pending or $src_completed->is_ready
1543 2 1 2 $reached ||= &$condition($_)
1595 0 0 0 $reached ||= &$condition($_)
1840 8 1 0 $min //= $_
1841 8 1 0 $max //= $_