Branch Coverage

blib/lib/Plack/Middleware/ExtDirect.pm
Criterion Covered Total %
branch 35 50 70.0


line true false branch
43 35 0 @_ == 1 && 'HASH' eq ref $_[0] ? :
74 27 8 if $_ =~ $config->router_path
75 5 3 if $_ =~ $config->poll_path
76 3 0 if $_ =~ $config->api_path
132 150 165 if exists $$params{$var}
135 0 35 if exists $$params{'router'}
138 0 35 if exists $$params{'event_provider'}
142 0 105 if exists $$params{$type}
144 0 105 if defined $code
162 0 3 if $@
186 0 27 unless $$env{'REQUEST_METHOD'} eq 'POST'
199 0 27 unless defined $router_input
228 0 5 unless $$env{'REQUEST_METHOD'} =~ / \A (GET|POST) \z /msx
277 21 6 unless ($is_form)
279 21 0 $postdata ne '' ? :
293 52 0 @values == 1 ? :
0 52 @values == 0 ? :
300 3 3 if ($has_uploads)
311 2 1 if @field_uploads
315 3 3 if (exists $keyword{'metadata'})
323 6 0 if exists $keyword{'extTID'}
369 1 1 $name ? :
377 1 0 $name eq '' ? :
1 1 $name eq 'POSTDATA' ? :
387 1 1 $name ? :