Branch Coverage

blib/lib/POE/Session/Multiplex.pm
Criterion Covered Total %
branch 67 90 74.4


line true false branch
34 5 0 if ('POE::Session'->can('SE_ID')) { }
73 2 4 if ($package->isa('POE::Session::PlainCall')) { }
92 0 6 if ($$self[6])
97 2 4 if ($$self[8])
107 13 46 unless $$self[7]
109 0 59 if ($$self[1]{'trace'})
115 34 25 if ($state =~ /^$$self[7]$/)
120 34 0 if ($method)
121 0 34 if ($$self[1]{'trace'})
128 10 24 if ($$self[8])
160 0 25 if ($$self[1]{'trace'})
167 11 14 if ($$self[8]) { }
187 0 19 unless $CURRENTOBJ
195 0 3 unless $CURRENTOBJ
197 0 3 unless $self
211 3 0 if blessed $session
234 0 34 if @ret
243 63 39 unless $handler
244 0 39 if 'CODE' eq ref $handler
247 0 39 unless $def
250 0 39 if (blessed($$handler[0]) and $$handler[0] eq $$def[0]) { }
39 0 elsif ($$def[0]->isa($$handler[0])) { }
264 22 3 if (@def) { }
265 0 22 if (blessed $obj_name)
282 2 2 unless $obj->can('__name')
284 0 2 unless $name
293 3 5 unless exists $$self[6]{$obj_name}
302 1 23 if (1 == @def)
308 0 24 unless $object
311 0 24 if $obj_name =~ /->/
314 3 21 if ($$self[6]{$obj_name})
320 3 21 if ($states) { }
324 0 3 unless ref $states
325 2 1 if ('HASH' eq ref $states) { }
343 6 26 unless 'ARRAY' eq ref $handler
344 0 26 if blessed($$handler[0]) and $$handler[0] ne $object
345 6 20 unless $package eq $$handler[0] or $object->isa($$handler[0])
350 1 20 unless $ok
356 4 19 if ($self->_handler_for($obj_name, '_psm_begin'))
368 2 9 if (blessed $obj_name)
372 1 10 if ($self->_handler_for($obj_name, '_psm_end'))
376 0 11 unless ($def)
382 8 3 unless $def and $$def[2]
403 0 2 unless ref $states
404 1 1 if ('HASH' eq ref $states) { }