Branch Coverage

lib/Peco/Container.pm
Criterion Covered Total %
branch 11 30 36.6


line true false branch
30 2 11 if (ref $class) { }
31 2 0 if (ref $class eq 'CODE') { }
38 1 10 if (UNIVERSAL::isa($class, 'Peco::Spec')) { }
7 3 elsif (UNIVERSAL::isa($class, 'UNIVERSAL')) { }
0 3 elsif (index($class, '::') != -1) { }
49 0 0 if ($@) { }
51 0 0 if (exists $INC{$file}) { }
57 0 0 if (UNIVERSAL::isa($class, 'Peco::Spec')) { }
80 17 0 if ($self->contains($key)) { }
0 0 elsif (UNIVERSAL::isa($key, 'UNIVERSAL')) { }
86 0 0 if (UNIVERSAL::isa($self->specs->{$key}->class, $type))
121 0 0 if ($self->specs->{$key}->can('clone')) { }
137 0 0 if UNIVERSAL::can($_, $method)
143 0 18 unless $self->contains($key)
148 0 13 if $self->contains($key)