Branch Coverage

blib/lib/Brick/Bucket.pm
Criterion Covered Total %
branch 15 36 41.6


line true false branch
128 2 18 unless (defined $name)
136 0 20 do { $bucket->{'_names'}{$name} if exists $bucket->{'_names'}{$name} } ? :
0 20 do { exists $bucket->{'_names'}{$name} if $unique } ? :
20 0 ref $sub eq ref sub { } ? :
142 0 20 if $unique
147 10 10 if exists $bucket->{'_names'}{$name}
164 20 0 if (defined $name) { }
0 0 elsif (defined $entry->get_name) { }
0 0 elsif (($name) = map({$_->{'sub'} =~ /^__|add_to_bucket/ ? () : $_->{'sub'};} @caller)) { }
166 0 0 $_->{'sub'} =~ /^__|add_to_bucket/ ? :
184 14 92 $_->{'sub'} =~ /add_to_bucket/ ? :
206 24 0 exists $bucket->{$sub} ? :
232 0 0 unless $brick->get_name eq $name
237 0 0 wantarray ? :
311 0 1 unless UNIVERSAL::isa($_[1], ref {})
346 38 248 unless @caller
403 0 0 unless $_[0]{'gv'}
450 0 0 ref $_[0]{'created_by'} ? :