Branch Coverage

blib/lib/Clustericious/RouteBuilder.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
21 15 4 unless ($app_class)
23 6 9 if ($caller->isa('Clustericious::App')) { }
30 0 9 unless $app_class =~ s/::Routes$//
51 0 83 if ($condition) { }
38 45 elsif (not ref $arg || $pattern) { }
0 45 elsif (not ref $arg and @args) { }
9 36 elsif (not ref $arg) { }
36 0 elsif (ref $arg eq 'CODE') { }
0 0 elsif (ref $arg eq 'ARRAY') { }
0 0 elsif (ref $arg eq 'HASH') { }
119 0 0 ref $_[0] ? :
143 5 49 if (not ref $methods and $methods eq 'authenticate')
146 4 1 defined $auth_plugin ? :
153 4 45 if (not ref $methods and $methods eq 'authorize')
155 0 4 unless $head_authenticated
158 3 1 if ($auth_plugin) { }
165 0 10 if $d_resource
167 0 10 if $d_action
181 0 45 if (not ref $methods and $methods eq 'ladder')
183 0 0 if $constraints and @$constraints
193 2 43 if not ref $methods and $methods eq 'websocket'
194 2 43 if $websocket
205 2 43 if $websocket