Branch Coverage

blib/lib/JSON/Assert.pm
Criterion Covered Total %
branch 34 70 48.5


line true false branch
24 22 4 if (ref $args->[0] eq 'JSON::Assert') { }
4 0 elsif ($args->[0] eq 'JSON::Assert') { }
43 5 4 if (scalar @values != 1) { }
3 1 elsif (ref $values[0] eq 'ARRAY') { }
53 9 0 if $VERBOSE
55 3 6 unless ($found == $count)
68 1 6 if ($@)
86 0 4 if (scalar @values != 1) { }
1 3 elsif (ref $values[0] eq 'ARRAY') { }
96 4 0 if $VERBOSE
97 1 3 unless ($found == 1)
103 3 0 if $VERBOSE
104 0 0 if ref $value eq ref $match and ref $value eq 'HASH' and scalar keys %$value == 0 and scalar keys %$match == 0
105 1 2 unless ($value =~ /$match/)
118 0 2 if ($@)
136 1 1 if (scalar @values != 1) { }
0 1 elsif (ref $values[0] eq 'ARRAY') { }
146 2 0 if $VERBOSE
147 0 2 unless (@$values)
154 4 0 if $VERBOSE
155 0 0 if (ref $value eq ref $match and ref $value eq 'HASH' and scalar keys %$value == 0 and scalar keys %$match == 0)
159 0 4 unless ($value =~ /$match/)
174 0 2 if ($@)
188 0 0 if (ref $match eq 'HASH') { }
0 0 elsif (ref $match eq 'ARRAY') { }
189 0 0 unless (eq_deeply($values[0], superhashof($match)))
191 0 0 if ($VERBOSE)
198 0 0 if (ref $match->[0] eq 'HASH')
201 0 0 unless eq_deeply(@values, \@new_wanted)
205 0 0 unless eq_deeply($values[0], $match)
209 0 0 unless $values[0] eq $match
222 0 0 if ($@)
234 0 2 defined $plural ? :
1 2 $number == 1 ? :
241 0 15 if ($@)