Branch Coverage

blib/lib/Bread/Board.pm
Criterion Covered Total %
branch 60 62 96.7


line true false branch
44 1 4 if $in_container
53 15 109 if (&blessed($name)) { }
54 1 14 unless $name->isa('Bread::Board::Container') or $name->isa('Bread::Board::Container::Parameterized')
57 1 13 if scalar @_ > 1
67 0 13 if defined $CC
71 1 108 if $is_inheriting and not defined $CC
76 11 97 if (scalar @_ > 1) { }
77 1 10 if $is_inheriting
87 4 93 $is_inheriting ? :
95 19 87 if not $is_inheriting and defined $CC
102 113 6 if (defined $body)
114 3 3 if (my $ret = do $file) { }
118 1 2 if $@
119 1 1 if $!
131 56 111 if (scalar @_ == 1) { }
110 1 elsif (scalar(@_) % 2 == 0) { }
132 1 55 if $is_inheriting
142 33 72 exists $params{'block'} ? :
2 105 defined $params{'service_type'} ? :
145 1 109 unless $class->does('Bread::Board::Service')
148 9 100 if ($is_inheriting) { }
149 0 9 unless defined $CC
152 1 8 $CC->isa('Bread::Board::Container::Parameterized') ? :
155 1 8 unless $prototype_service->does('Bread::Board::Service')
172 3 155 unless defined $CC
186 1 23 unless defined $CC
193 1 32 unless scalar @_ == 1
197 26 6 if (&blessed($_[0])) { }
198 1 25 if ($_[0]->does('Bread::Board::Service')) { }
24 1 elsif ($_[0]->isa('Bread::Board::Service::Inferred')) { }
216 1 23 if (@_ == 1) { }