Branch Coverage

blib/lib/IOC/Service.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
24 1 99 unless defined $name
25 3 96 unless defined $block and ref $block eq 'CODE'
43 4 97 unless blessed $container and $container->isa('IOC::Container')
57 73 34 unless (defined $$self{'_instance'})
58 1 72 unless defined $$self{'container'}
61 66 1 unless defined $$self{'_instance'}
62 1 66 unless defined $$self{'_instance'}
78 13 58 if defined $$self{'_instance'}
85 25 46 if defined $$self{'container'}
96 20 1 if (&CORE::GLOBAL::caller())[0] eq 'IOC::Service::Deferred'
105 0 0 if $_[3] eq '""' and not overload::Method($_[0], $_[3])
106 0 0 if (my $func = overload::Method($_[0], $_[3]))
116 3 7 unless blessed $service and $service->isa('IOC::Service')
137 1 3 unless ref $func eq 'CODE'