Branch Coverage

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


line true false branch
217 0 650 @_ == 1 && ref $_[0] ? :
220 1 649 unless my $sqitch = $p->{'sqitch'}
225 173 476 if ($uri)
226 130 43 unless ($name)
228 11 119 if ($uri->password)
241 276 200 unless ($name)
245 3 273 if ($uri = $config->get("key", "core.target"))
252 5 268 unless ($ekey = $config->get("key", "core.engine"))
253 1 4 if $config->initialized
269 388 83 if ($name =~ /:/) { }
276 3 80 unless ($uri = $config->get("key", "target.$name.uri"))
281 2 1 unless %{$config->get_section("section", "target.$name");}
293 2 466 unless $ekey ||= $uri->canonical_engine
300 12 1852 if exists $p->{$attr}
303 386 80 unless ($name)
305 14 372 if ($uri->password) { }
320 0 39 unless my $sqitch = $p{'sqitch'}
332 38 1 if $core
337 183 13 unless $key =~ /^target[.]([^.]+)[.]uri$/
339 9 4 unless $seen{$1}
344 180 16 unless $key =~ /^engine[.]([^.]+)[.]target$/
346 4 12 unless $seen{$val}
352 89 107 unless my($engine) = $key =~ /^engine[.]([^.]+)/
354 41 66 if $seen{$engine}++
357 40 26 unless $seen{$uri}