Branch Coverage

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


line true false branch
17 0 3 unless ($target->can('has'))
21 0 3 if defined $stash_cache{$target}
82 0 3 if scalar @args == 1 and ref $_[0] eq 'HASH'
83 3 0 if @args % 2 == 1
95 1 4 ref $method eq 'ARRAY' ? :
106 2 0 unless defined $self->data->{$target}
115 0 2 unless defined $self->data->{$target}
117 0 2 if (defined $key) { }
118 0 0 if defined $self->data->{$target}{$key}
128 0 0 unless defined $self->data->{$target}
130 0 0 if defined $self->data->{$target}{$key}
180 1 4 unless defined $self->attributes->{$attribute}
181 2 2 if ($key) { }
192 0 0 defined $self->attributes->{$attribute} ? :
202 0 2 if @_ % 2 or @_ == 0
203 1 1 unless defined $self->attributes->{$attribute}