Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
349 2 4 372 @_ and $_[0]
4 134 238 @_ and $_[0] and not ref $_[0]
138 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 101 9 3 $ro and @_
110 2 1 $ro and @_ and not $new
413 95 11 6 exists $keys{'DESTROY'} and $destroy || $clean || !$meth || ref $hash->{'DESTROY'} ne 'CODE'
415 84 15 1 $new and exists $keys{'new'}
416 88 10 1 $ro and not $lock
419 25 24 10 $arrays and ref $_ eq "ARRAY"
430 88 13 18 $meth and ref $hash->{$k} eq "CODE"
509 1 1 65 @_ and $_[0]
1 28 37 @_ and $_[0] and not ref $_[0]
29 10 27 @_ and $_[0] and not ref $_[0] and $_[0] =~ /^-/
517 6 7 6 $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 78 15 $destroy or $clean