Branch Coverage

blib/lib/Color/Library/Dictionary.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
25 22 22 if @parent_module == 3
47 64 21 if $self = $class->_self
56 0 21 if $self->_compiled
90 21 65 unless $self->_compiled
92 86 0 wantarray ? :
108 43 0 wantarray ? :
140 0 20 unless defined $query
142 20 0 unless (ref $query)
147 0 20 unless $self->_compiled
151 0 20 if (ref $query eq 'ARRAY') { }
0 20 elsif ($query =~ /^\#?([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/i) { }
0 20 elsif ($query =~ /^\#([\da-f])([\da-f])([\da-f])$/i) { }
165 5 15 if $color = $self->_index->{'title'}{$query}
169 0 15 if $color = $self->_index->{'id'}{$query}
173 1 14 if $color = $self->_index->{'name'}{$query}
175 0 14 if $color = $self->_index->{'value'}{$query}