Branch Coverage

blib/lib/Bolts.pm
Criterion Covered Total %
branch 40 50 80.0


line true false branch
64 9 43 if @BAG_META
75 0 38 if ($params->$Bolts::_can('does') and $params->$Bolts::_does('Bolts::Blueprint')) { }
82 0 38 unless $params{'blueprint'}->$Bolts::_can('does') and $params{'blueprint'}->$Bolts::_does('Bolts::Blueprint::Role::Injector')
86 8 30 if defined $params{'isa'}
88 0 38 if defined $params{'does'}
106 2 34 if (@_ == 0) { }
3 31 elsif (@_ == 1) { }
126 0 31 if (defined $params{'blueprint'}) { }
2 29 elsif (defined $params{'path'} and $params{'path'}) { }
0 29 elsif (exists $params{'value'}) { }
11 18 elsif (defined $params{'class'}) { }
18 0 elsif (defined $params{'builder'}) { }
134 0 2 unless ref $params{'path'} eq 'ARRAY'
162 6 30 if (defined $params{'parameters'})
165 0 6 if ($parameters->$Bolts::_does('Bolts::Blueprint')) { }
5 1 elsif (ref $parameters eq 'HASH') { }
1 0 elsif (ref $parameters eq 'ARRAY') { }
193 1 35 if (defined $params{'setters'})
204 1 35 if (defined $params{'indexes'})
208 4 0 if (not &Scalar::Util::blessed($def) and &Scalar::Util::reftype($def) eq 'HASH')
219 9 27 if (defined $params{'push'})
235 1 35 if (defined $params{'keys'})
299 1 1 $such_that_each ? :
356 4 5 unless ref $path eq 'ARRAY'
374 8 8 if exists $bp{$k}