Condition Coverage

blib/lib/Util/H2O.pm
Criterion Covered Total %
condition 91 91 100.0


and 3 conditions

line !l l&&!r l&&r condition
349 2 4 373 @_ and $_[0]
4 135 238 @_ and $_[0] and not ref $_[0]
139 5 233 @_ and $_[0] and not ref $_[0] and $_[0] =~ /^-/
360 4 10 3 $pass ne "undef" and $pass ne "ref"
391 16 1 15 $arrays and ref $hash eq "ARRAY"
409 102 9 3 $ro and @_
111 2 1 $ro and @_ and not $new
413 96 11 6 exists $keys{'DESTROY'} and $destroy || $clean || !$meth || ref $hash->{'DESTROY'} ne 'CODE'
415 85 15 1 $new and exists $keys{'new'}
416 89 10 1 $ro and not $lock
419 25 24 10 $arrays and ref $_ eq "ARRAY"
430 91 13 18 $meth and ref $hash->{$k} eq "CODE"
521 44 1 9 @_ == 1 and $_[0]
1 4 5 @_ == 1 and $_[0] and not ref $_[0]
5 4 1 @_ == 1 and $_[0] and not ref $_[0] and $_[0] eq "--"
522 1 2 80 @_ and $_[0]
2 9 71 @_ and $_[0] and not ref $_[0]
11 1 70 @_ and $_[0] and not ref $_[0] and $_[0] =~ /^-/
532 13 9 7 $arrays and ref $h2o eq "ARRAY"

or 2 conditions

line l !l condition
436 5 1 eval { do { &$destroy($_[0]); 1 } } or carp($@)
450 11 1 exists $keys{$_} or croak("Unknown argument '${_}'")

or 3 conditions

line l !l&&r !l&&!r condition
360 1 3 14 not defined $pass or $pass ne "undef" and $pass ne "ref"
365 1 1 14 not defined $class or ref $class
2 1 13 not defined $class or ref $class or not length $class
371 1 1 9 not defined $class or ref $class
2 1 8 not defined $class or ref $class or not length $class
377 1 5 1 ref $isa eq "ARRAY" or not ref $isa
393 17 2 4 ref $_ eq "HASH" or ref $_ eq "ARRAY"
399 1 3 2 not defined $hash or ref $hash
413 7 4 5 $destroy || $clean || !$meth || ref $hash->{'DESTROY'} ne 'CODE'
434 5 79 15 $destroy or $clean