Condition Coverage

blib/lib/App/Memcached/CLI/Item.pm
Criterion Covered Total %
condition 0 16 0.0


or 2 conditions

line l !l condition
34 0 0 $opt{'command'} || 'get'
57 0 0 $opt{'command'} || 'set'

or 3 conditions

line l !l&&r !l&&!r condition
110 0 0 0 $self->{'disp_length'} ||= sub { return unless defined $self->{'length'}; my $length = $self->{'length'}; if ($length >= 1024) { return sprintf('%.1fKB', $length / 1024); } ; return "${length}B"; } ->()
119 0 0 0 $self->{'disp_expire'} ||= sub { return unless defined $self->{'expire'}; return strftime('%F %T', localtime $self->{'expire'}); } ->()
128 0 0 0 $self->{'disp_max_value_length'} || $DISPLAY_DATA_LENGTH
145 0 0 0 $self->{'value_text'} ||= sub { return unless defined $self->{'value'}; unless ($self->{'value'} =~ /^[\x21-\x7e\s]/) { return '(Not ASCII)'; } ; return $self->{'value'}; } ->()