Branch Coverage

blib/lib/JSON/RPC/Dispatch.pm
Criterion Covered Total %
branch 36 42 85.7


line true false branch
26 1 1 unless ($$self{'coder'})
30 1 1 unless ($$self{'parser'})
33 1 1 unless ($$self{'router'})
50 1 9 unless ($handler)
52 0 1 if $@
62 2 10 if (&Scalar::Util::blessed($klass))
69 10 0 unless ($klass =~ s/^\+//)
83 17 0 unless (&Scalar::Util::blessed($req))
94 4 10 if (ref $procedures eq 'ARRAY') { }
99 1 13 if (@$procedures <= 0 or not defined $$procedures[0])
113 1 2 if ($e =~ /Invalid parameter/) { }
1 1 elsif ($e =~ /parse error/) { }
139 0 15 unless ($$procedure{'method'})
155 3 12 unless ($matched)
160 2 1 unless ($is_notification)
183 0 12 unless ($code)
200 5 0 if (not $is_notification)
213 4 3 if (not $is_notification)
215 1 3 if (ref $e eq 'HASH') { }
231 15 2 if (scalar @response) { }
234 2 13 $is_batch ? :