Condition Coverage

blib/lib/Catalyst/View/JSON/_PerRequest.pm
Criterion Covered Total %
condition 8 12 66.6


and 3 conditions

line !l l&&!r l&&r condition
56 0 3 5 scalar @proto and ref $proto[$#proto] eq 'HASH'
66 5 0 3 scalar @proto and &Scalar::Util::blessed($proto[$#proto])

or 3 conditions

line l !l&&r !l&&!r condition
19 25 4 0 $self->{'data'} ||= do { my $default_view_model = $self->{'parent'}->default_view_model; $default_view_model = $self->{'ctx'}->model($default_view_model) unless ref $default_view_model; $default_view_model }
102 6 0 2 eval { do { $self->{'json'}->encode($self->data) } } || do { if (my $cb = $self->handle_encode_error) { delete $self->{'data'}; return &$cb($self, $@); } else { die $@; } }