Branch Coverage

blib/lib/JSON/Eval.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
24 0 1 @_ ? :
33 1 0 if $r == $$self
52 4 5 if (ref $o eq 'HASH' and keys %$o == 1 and exists $o->{'$eval'})
55 5 0 if (ref $o eq 'HASH' and keys %$o == 1 and exists $o->{'$scalar'})
59 3 5 if (ref $o eq 'ARRAY')
61 8 0 ref $_ ? :
63 1 4 if (ref $o eq 'HASH')
65 3 0 ref $o->{$_} ? :
73 3 15 if (ref $o eq 'CODE')
76 0 3 if (keys %$lexicals)
85 3 12 if (ref $o eq 'ARRAY')
87 8 0 ref $_ ? :
89 5 7 if (ref $o eq 'SCALAR' or ref $o eq 'REF')
93 2 5 if (ref $o eq 'HASH')
95 3 1 ref $o->{$_} ? :
97 0 5 if (&blessed($o) and $o->isa('Type::Tiny'))
98 0 0 if ($o->has_library and not $o->is_anon and $o->library->has_type($o->name)) { }
107 1 0 if (&blessed($o) and $self->convert_blessed and $o->can('TO_JSON'))