Branch Coverage

blib/lib/JSON/RPC/Dispatch.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
26 1 1 unless ($$self{'coder'})
30 1 1 unless ($$self{'parser'})
33 1 1 unless ($$self{'router'})
50 1 8 unless ($handler)
52 0 1 if $@
62 2 9 if (&Scalar::Util::blessed($klass))
69 9 0 unless ($klass =~ s/^\+//)
83 16 0 unless (&Scalar::Util::blessed($req))
93 1 12 if (@$procedures <= 0)
106 1 2 if ($e =~ /Invalid parameter/) { }
1 1 elsif ($e =~ /parse error/) { }
132 0 14 unless ($$procedure{'method'})
148 3 11 unless ($matched)
153 2 1 unless ($is_notification)
176 0 11 unless ($code)
193 4 0 if (not $is_notification)
206 4 3 if (not $is_notification)
208 1 3 if (ref $e eq 'HASH') { }
224 14 2 if (scalar @response) { }
227 1 13 @$procedures > 1 ? :