Condition Coverage

blib/lib/Hydrogen/Hash.pm
Criterion Covered Total %
condition 1 11 9.0


and 3 conditions

line !l l&&!r l&&r condition
74 0 0 0 @_ >= 2 and @_ <= 3
267 0 0 0 &Scalar::Util::blessed($_[1]) and $_[1]->isa("Regexp")
0 0 1 ref $_[1] and not !&re::is_regexp($_[1])

or 2 conditions

line l !l condition
110 0 0 $__signature ||= sub { my(%tmp, $tmp); Hydrogen::croak("Wrong number of parameters in signature for %s: got %d, %s", "accessor", scalar @_, "expected exactly 2 parameters") unless @_ >= 2 and @_ <= 3; Hydrogen::croak("Type check failed in signature for accessor: %s should be %s", "\$_[0]", "HashRef") unless ref $_[0] eq "HASH"; Hydrogen::croak("Type check failed in signature for accessor: %s should be %s", "\$_[1]", "Str") unless do { if (defined $_[1]) { ref \(my $val = $_[1]) eq "SCALAR" unless ref \$_[1] eq "SCALAR"; } }; return @_ unless $#_ >= 2; '???'; @_; }