Branch Coverage

lib/Spoon/Base.pm
Criterion Covered Total %
branch 13 40 32.5


line true false branch
17 56 5 if defined $Spoon::Base::HUB and not @_
19 0 5 if defined $Spoon::Base::HUB
28 5 0 $$args{-'config_class'} || $self->can('config_class') ? :
32 0 5 if $@
49 0 0 unless shift()
70 0 0 if exists $$self{$name}
72 0 0 exists $self->hub->config->{$name} ? :
91 0 0 $self->class_id eq 'hub' ? :
103 0 0 unless -d $dir
109 0 1 if ($self->is_in_cgi) { }
110 0 0 if $@
117 0 1 if ref $self
146 0 0 unless defined $ENV{$variable}
155 0 0 @_ == 1 ? :
163 0 6 if @_
164 4 2 if defined $has_utf8
165 0 2 $] < 5.008 ? :
166 2 0 if $has_utf8
170 6 0 if $self->has_utf8 and defined $_[0] and not &Encode::is_utf8($_[0])
178 0 0 if $self->has_utf8 and defined $_[0]