Branch Coverage

blib/lib/App/Sqitch/Target.pm
Criterion Covered Total %
branch 48 50 96.0


line true false branch
214 0 603 @_ == 1 && ref $_[0] ? :
217 1 602 unless my $sqitch = $p->{'sqitch'}
222 139 463 if ($uri)
223 98 41 unless ($name)
225 8 90 if ($uri->password)
238 265 198 unless ($name)
242 3 262 if ($uri = $config->get("key", "core.target"))
249 5 257 unless ($ekey = $config->get("key", "core.engine"))
250 1 4 if $config->initialized
266 375 83 if ($name =~ /:/) { }
273 3 80 unless ($uri = $config->get("key", "target.$name.uri"))
278 2 1 unless %{$config->get_section("section", "target.$name");}
290 2 453 unless $ekey ||= $uri->canonical_engine
297 12 1800 if exists $p->{$attr}
300 373 80 unless ($name)
302 11 362 if ($uri->password) { }
317 0 39 unless my $sqitch = $p{'sqitch'}
329 38 1 if $core
334 183 13 unless $key =~ /^target[.]([^.]+)[.]uri$/
336 9 4 unless $seen{$1}
341 180 16 unless $key =~ /^engine[.]([^.]+)[.]target$/
343 4 12 unless $seen{$val}
349 89 107 unless my($engine) = $key =~ /^engine[.]([^.]+)/
351 41 66 if $seen{$engine}++
354 40 26 unless $seen{$uri}