Branch Coverage

blib/lib/Lim/RPC.pm
Criterion Covered Total %
branch 14 40 35.0


line true false branch
52 2 0 if (defined $q and defined $def)
53 0 2 unless (ref $q eq 'HASH' and ref $def eq 'HASH')
62 0 2 if (ref $q eq 'ARRAY') { }
70 0 2 unless (ref $q eq 'HASH')
76 0 2 if (blessed($$def{$k}) and $$def{$k}->required and not exists $$q{$k})
83 0 2 unless (exists $$def{$k})
87 0 2 if (blessed($$def{$k}) and not $$def{$k}->comform($$q{$k}))
91 0 2 if (ref $$q{$k} eq 'HASH' or ref $$q{$k} eq 'ARRAY')
92 0 0 if (ref $$def{$k} eq 'HASH') { }
0 0 elsif (blessed($$def{$k}) and $$def{$k}->isa('Lim::RPC::Value::Collection')) { }
96 0 0 unless ($$def{$k}->swallow)
121 0 2 unless (blessed $cb)
125 0 2 if (blessed $data) { }
2 0 elsif (defined $data) { }
126 0 0 if ($data->isa('Lim::Error'))
131 0 2 unless (ref $data eq 'HASH')
135 2 0 if ($cb->call_def and exists $cb->call_def->{'out'}) { }
0 0 elsif (%$data) { }
143 0 0 if ($cb->call_def and exists $cb->call_def->{'out'})
148 2 0 defined $data ? :