Condition Coverage

blib/lib/Thread/Queue/MaxSize.pm
Criterion Covered Total %
condition 24 41 58.5


and 3 conditions

line !l l&&!r l&&r condition
18 0 17 0 $config and !ref($config) || ref $config ne 'HASH'
52 3 0 81 defined $$self{'MAXSIZE'} and $$self{'MAXSIZE'} > 0
53 35 11 35 scalar(@{$queue;}) + scalar(@_) > $$self{'MAXSIZE'} and $$self{'ON_MAXSIZE'} =~ /^(die|warn_and_reject|silent_reject|warn_and_truncate)$/xi
68 15 42 22 scalar @{$queue;} and scalar(@{$queue;}) + scalar(@_) > $$self{'MAXSIZE'}
74 0 57 0 scalar @_ and scalar @_ > $$self{'MAXSIZE'}
112 0 0 5 defined $$self{'MAXSIZE'} and $$self{'MAXSIZE'} > 0
113 0 1 4 scalar(@{$queue;}) + scalar(@_) + scalar(@tmp) > $$self{'MAXSIZE'} and $$self{'ON_MAXSIZE'} =~ /^(die|warn_and_reject|silent_reject|warn_and_truncate)$/xi
134 2 0 6 scalar @{$queue;} and scalar(@{$queue;}) + scalar(@_) + scalar(@tmp) > $$self{'MAXSIZE'}
140 0 2 2 scalar @_ and scalar(@_) + scalar(@tmp) > $$self{'MAXSIZE'}
158 2 15 0 defined $maxsize and !looks_like_number($maxsize) || int $maxsize != $maxsize || $maxsize < 1
172 0 17 0 defined $on_maxsize and not $on_maxsize =~ /^(?:die|warn_and_reject|silent_reject|warn_and_truncate|silent_truncate)$/xi

or 2 conditions

line l !l condition
34 15 2 $on_maxsize || 'silent_truncate'

or 3 conditions

line l !l&&r !l&&!r condition
18 0 0 17 !ref($config) || ref $config ne 'HASH'
158 0 0 15 !looks_like_number($maxsize) || int $maxsize != $maxsize || $maxsize < 1