Branch Coverage

blib/lib/Hydrogen/Counter.pm
Criterion Covered Total %
branch 32 56 57.1


line true false branch
55 0 3 unless @_ >= 1 and @_ <= 2
62 0 3 unless do { my $tmp = $_[0]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
64 3 0 if defined $tmp and not ref $tmp
72 2 1 unless $#_ >= 1
75 0 1 unless do { my $tmp = $_[1]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
77 1 0 if defined $tmp and not ref $tmp
89 1 2 @_ - 1 ? :
93 0 3 unless do { my $tmp = $shv_final_unchecked; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
95 3 0 if defined $tmp and not ref $tmp
129 0 3 unless @_ >= 1 and @_ <= 2
136 0 3 unless do { my $tmp = $_[0]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
138 3 0 if defined $tmp and not ref $tmp
146 2 1 unless $#_ >= 1
149 0 1 unless do { my $tmp = $_[1]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
151 1 0 if defined $tmp and not ref $tmp
163 1 2 @_ - 1 ? :
167 0 3 unless do { my $tmp = $shv_final_unchecked; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
169 3 0 if defined $tmp and not ref $tmp
195 0 1 unless @_ == 1
203 0 1 unless do { my $tmp = $shv_final_unchecked; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
205 1 0 if defined $tmp and not ref $tmp
232 0 1 unless @_ == 2
239 0 1 unless do { my $tmp = $_[0]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
241 1 0 if defined $tmp and not ref $tmp
250 0 1 unless do { my $tmp = $_[1]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
252 1 0 if defined $tmp and not ref $tmp
266 0 1 unless do { my $tmp = $shv_final_unchecked; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
268 1 0 if defined $tmp and not ref $tmp