Branch Coverage

blib/lib/Ark/View/JSON.pm
Criterion Covered Total %
branch 14 30 46.6


line true false branch
62 2 0 if (my $expose = $self->expose_stash)
63 0 2 if (ref $expose eq 'Regexp') { }
0 2 elsif (ref $expose eq 'ARRAY') { }
2 0 elsif (not ref $expose) { }
76 2 0 if ($single_key) { }
79 0 0 &$cond($_) ? :
83 0 2 $self->allow_callback ? :
85 0 2 $cb_param ? :
86 0 2 if $cb
90 0 2 if (($c->req->user_agent || '') =~ /Opera/) { }
96 2 0 if (defined(my $status_code_field = $self->status_code_field))
97 1 1 if (exists $data->{$status_code_field})
105 0 0 if ($self->allow_callback and ($c->req->user_agent || '') =~ /Safari/ and not +($c->req->user_agent || '') =~ /Chrome/)
111 0 2 if $cb
113 0 2 if $cb