Branch Coverage

lib/MojoX/Dispatcher/Qooxdoo/Jsonrpc.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
14 1 0 unless $ENV{'DISABLE_DEPRECATION_WARNING_MPQ'}
38 8 1 if (/^POST$/)
41 1 7 if ($@)
51 1 0 if (/^GET$/)
54 0 1 if ($@)
70 1 7 unless (defined $id)
79 1 6 unless (my $service = $$data{'service'})
87 1 5 unless (my $method = $$data{'method'})
104 1 4 unless ref $svc
110 0 4 unless $svc->can('allow_rpc_access')
117 0 4 if ($svc->can('controller'))
122 0 4 if ($svc->can('mojo_session'))
129 0 4 if ($svc->can('mojo_stash'))
136 1 3 unless $svc->allow_rpc_access($method)
141 0 3 unless $svc->can($method)
153 3 2 if ($@) { }
156 2 1 if (/HASH/ and $$@{'message'})
164 1 0 if (/.+/ and $@->can('message') and $@->can('code'))
186 1 4 if ($cross_domain) { }