Branch Coverage

blib/lib/App/Sqitch/Command/init.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
47 1 12 unless $project
49 11 1 unless $project =~ /\A$name_re\z/
73 1 11 if (-f $file)
87 7 4 if ($ekey) { }
103 3 19 if (my $val = $props->{$name}) { }
127 10 78 if defined $props->{$attr}
131 1 10 if (my $vars = $props->{'variables'})
139 10 1 if (@vars) { }
147 10 1 if @comments
153 7 4 if ($ekey)
160 4 17 if (my $val = $props->{$key})
176 2 5 if (@vars) { }
178 2 0 if @vars
186 6 1 if @comments
194 1 10 if (my $target_name = $props->{'target'})
196 0 1 unless $target_name =~ /:/