Condition Coverage

blib/lib/Hydrogen/Counter.pm
Criterion Covered Total %
condition 16 40 40.0


and 3 conditions

line !l l&&!r l&&r condition
55 0 0 3 @_ >= 1 and @_ <= 2
64 0 0 3 defined $tmp and not ref $tmp
77 0 0 1 defined $tmp and not ref $tmp
95 0 0 3 defined $tmp and not ref $tmp
129 0 0 3 @_ >= 1 and @_ <= 2
138 0 0 3 defined $tmp and not ref $tmp
151 0 0 1 defined $tmp and not ref $tmp
169 0 0 3 defined $tmp and not ref $tmp
205 0 0 1 defined $tmp and not ref $tmp
241 0 0 1 defined $tmp and not ref $tmp
252 0 0 1 defined $tmp and not ref $tmp
268 0 0 1 defined $tmp and not ref $tmp

or 2 conditions

line l !l condition
85 2 1 $__signature ||= sub { my(%tmp, $tmp); Hydrogen::croak("Wrong number of parameters in signature for %s: got %d, %s", "dec", scalar @_, "expected exactly 1 parameters") unless @_ >= 1 and @_ <= 2; Hydrogen::croak("Type check failed in signature for dec: %s should be %s", "\$_[0]", "Int") unless do { my $tmp = $_[0]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }; return @_ unless $#_ >= 1; Hydrogen::croak("Type check failed in signature for dec: %s should be %s", "\$_[1]", "Optional[Int]") unless do { my $tmp = $_[1]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }; @_; }
159 2 1 $__signature ||= sub { my(%tmp, $tmp); Hydrogen::croak("Wrong number of parameters in signature for %s: got %d, %s", "inc", scalar @_, "expected exactly 1 parameters") unless @_ >= 1 and @_ <= 2; Hydrogen::croak("Type check failed in signature for inc: %s should be %s", "\$_[0]", "Int") unless do { my $tmp = $_[0]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }; return @_ unless $#_ >= 1; Hydrogen::croak("Type check failed in signature for inc: %s should be %s", "\$_[1]", "Optional[Int]") unless do { my $tmp = $_[1]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }; @_; }