Branch Coverage

blib/lib/MooX/ClassStash.pm
Criterion Covered Total %
branch 16 32 50.0


line true false branch
20 0 3 unless ($target->can('has'))
24 0 3 if defined $stash_cache{$target}
85 0 3 if scalar @args == 1 and ref $_[0] eq 'HASH'
86 3 0 if @args % 2 == 1
98 1 4 ref $method eq 'ARRAY' ? :
109 2 0 unless defined $self->data->{$target}
118 0 2 unless defined $self->data->{$target}
120 0 2 if (defined $key) { }
121 0 0 if defined $self->data->{$target}{$key}
131 0 0 unless defined $self->data->{$target}
133 0 0 if defined $self->data->{$target}{$key}
183 1 4 unless defined $self->attributes->{$attribute}
184 2 2 if ($key) { }
195 0 0 defined $self->attributes->{$attribute} ? :
205 0 2 if @_ % 2 or @_ == 0
206 1 1 unless defined $self->attributes->{$attribute}