Branch Coverage

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


line true false branch
25 0 19 unless exists $args{'resource'} and not blessed($args{'resource'}) and use_package_optimistically($args{'resource'})->isa('Web::Machine::Resource')
30 4 15 if (exists $args{'request_class'}) { }
31 2 1 unless use_package_optimistically($args{'request_class'})->isa('Plack::Request')
53 32 0 unless $$self{'resource_args'}
70 1 32 unless defined $request
76 10 22 if ($$self{'streaming'}) { }
82 4 6 if (my $cb = $$env{'web.machine.streaming_push'}) { }
95 1 21 if ($$env{'web.machine.streaming_push'}) { }