Branch Coverage

blib/lib/Hydrogen/Topic/Counter.pm
Criterion Covered Total %
branch 26 44 59.0


line true false branch
56 0 3 unless @_ >= 0
62 2 1 unless $#_ >= 0
65 0 1 unless do { my $tmp = $_[0]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
67 1 0 if defined $tmp and not ref $tmp
79 1 2 0 + @_ ? :
82 0 3 unless do { my $tmp = $shv_final_unchecked; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
84 3 0 if defined $tmp and not ref $tmp
119 0 3 unless @_ >= 0
125 2 1 unless $#_ >= 0
128 0 1 unless do { my $tmp = $_[0]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
130 1 0 if defined $tmp and not ref $tmp
142 1 2 0 + @_ ? :
145 0 3 unless do { my $tmp = $shv_final_unchecked; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
147 3 0 if defined $tmp and not ref $tmp
174 0 1 unless @_ == 0
182 0 1 unless do { my $tmp = $shv_final_unchecked; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
184 1 0 if defined $tmp and not ref $tmp
212 0 1 unless @_ == 1
219 0 1 unless do { my $tmp = $_[0]; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
221 1 0 if defined $tmp and not ref $tmp
235 0 1 unless do { my $tmp = $shv_final_unchecked; $tmp =~ /\A-?[0-9]+\z/ if defined $tmp and not ref $tmp }
237 1 0 if defined $tmp and not ref $tmp