Branch Coverage

blib/lib/Catalyst/ActionRole/MethodSignatureDependencyInjection.pm
Criterion Covered Total %
branch 56 112 50.0


line true false branch
16 0 0 unless $self->attributes->{'UsePrototype'}
28 0 1 unless $self->attributes->{'ExecuteArgsTemplate'}
40 0 21 if ($INC{'Function/Parameters.pm'}) { }
42 0 0 $_->type ? :
57 10 1 $self->use_prototype ? :
93 0 11 unless length $_
97 11 30 if pos $_ == length $_
104 10 1 if ($self->use_prototype)
107 0 33 $_ =~ /\Srequired$/ ? :
132 5 36 $what =~ /required/ ? :
133 4 37 if (lc $what eq '$ctx')
134 4 33 if (lc $what eq '$c')
135 0 33 if (lc $what eq '$state')
136 2 31 if (lc $what eq '$req')
137 0 31 if (lc $what eq '$request')
138 0 31 if (lc $what eq '$env')
140 6 25 if (lc $what eq '$res')
141 0 25 if (lc $what eq '$response')
143 0 25 if (lc $what eq '$args')
144 2 0 unless (shift())->req->body_data
2 23 if (lc $what eq '$bodydata')
145 2 21 if (lc $what eq '$bodyparams')
146 2 19 if (lc $what eq '$queryparams')
149 0 19 if (lc $what eq '@args')
150 0 19 if (lc $what eq '%bodyparams')
151 0 0 unless (shift())->req->body_data
0 19 if (lc $what eq '%bodydata')
153 0 19 if (lc $what eq '%queryparams')
154 0 0 unless (shift())->req->body_data
0 19 if (lc $what eq '%body')
155 0 19 if (lc $what eq '%query')
159 2 17 if ($what =~ /^Model/ and not $what =~ /^Model\:/)
160 0 17 if ($what =~ /^View/ and not $what =~ /^View\:/)
162 1 16 if (defined(my $arg_index = ($what =~ /^\$?Arg(\d+).*$/i)[0]))
168 0 16 if ($what =~ /^\$?Args\s/)
173 2 14 if ($what =~ /^\$?Arg\s?.*/i)
175 0 2 unless defined $arg_count
182 0 14 if ($what =~ /^\$?Capture\s?.*/i)
185 0 0 unless defined $arg_count
191 0 14 if (defined(my $capture_index = ($what =~ /^\$?Capture(\d+).*$/i)[0]))
198 14 0 if ($what =~ /^Model\:\:/i)
214 0 14 unless $model
219 0 14 if (defined $rest)
223 0 14 if @inner_deps
229 0 12 unless $c->components->{ref($c) . '::Model::' . $model}
232 0 12 if @rest
238 0 0 if ($what =~ /^View\:\:/i)
242 0 0 unless $view
246 0 0 if (defined $rest)
250 0 0 if @inner_deps
255 0 0 unless $c->components->{ref($c) . '::View::' . $view}
258 0 0 if @rest
264 0 0 if (my $controller = ($what =~ /^Controller\:\:(.+?)\s+.+$/)[0] || ($what =~ /^Controller\:\:(.+)\s+.+$/)[0])
270 0 0 unless $c->components->{ref($c) . '::Controller::' . $controller}
273 0 0 if @rest
282 0 11 unless (scalar @dependencies)