Branch Coverage

blib/lib/Web/Machine.pm
Criterion Covered Total %
branch 14 16 87.5


line true false branch
26 0 18 unless exists $args{'resource'} and not blessed($args{'resource'}) and use_package_optimistically($args{'resource'})->isa('Web::Machine::Resource')
31 4 14 if (exists $args{'request_class'}) { }
32 2 1 unless use_package_optimistically($args{'request_class'})->isa('Plack::Request')
54 31 0 unless $$self{'resource_args'}
71 1 31 unless defined $request
77 10 21 if ($$self{'streaming'}) { }
83 4 6 if (my $cb = $$env{'web.machine.streaming_push'}) { }
96 1 20 if ($$env{'web.machine.streaming_push'}) { }