line |
true |
false |
branch |
8
|
2 |
19 |
if ($data) { }
|
9
|
0 |
2 |
if ($self->{'data'}) { }
|
12
|
1 |
1 |
unless ref $data
|
13
|
0 |
2 |
unless $data->can('TO_JSON')
|
21
|
2 |
0 |
unless ref $default_view_model
|
39
|
4 |
0 |
if (ref \$proto[0] eq 'SCALAR') { }
|
45
|
3 |
1 |
if (scalar @proto and ref $proto[$#proto] eq 'HASH')
|
55
|
1 |
3 |
if (scalar @proto and &Scalar::Util::blessed($proto[$#proto]))
|
63
|
0 |
4 |
if (@proto)
|
68
|
0 |
0 |
$status ? :
|
|
0 |
4 |
if $self->{'ctx'}->debug
|
72
|
0 |
4 |
if @headers
|
73
|
4 |
0 |
unless $res->status != 200
|
74
|
4 |
0 |
unless $res->content_type
|
78
|
0 |
4 |
if (my $param = $self->{'callback_param'})
|
80
|
0 |
0 |
unless $cb =~ /^[a-zA-Z0-9\.\_\[\]]+$/
|
84
|
4 |
0 |
unless $res->has_body
|
85
|
0 |
4 |
if $self->{'auto_detach'}
|