Condition Coverage

blib/lib/Text/Quote.pm
Criterion Covered Total %
condition 27 37 72.9


and 3 conditions

line !l l&&!r l&&r condition
228 0 21 29 defined $num and $num =~ /\A-?(?:0|[1-9]\d{0,8})(\.\d{0,18})?\z/
309 0 10 1 $compress_at and length $str > $compress_at
318 0 3 7 $repeat_at and length $str > $repeat_at
328 6 0 2 length $escaped > $encode_at and length $escaped > length($str) * 2
0 5 3 $encode_at and (length $escaped > $encode_at and length $escaped > length($str) * 2)
338 0 1 1 $method and $method ne 'pack'
1 1 0 $method and $method ne 'pack' and $opts{'reqs'}
389 4 0 6 $key =~ /\A(?:-[A-Za-z]+\w*|[_A-Za-z]+\w*|\d+)\z/ and not $self->quote_prop('key_quote_hash')->{$key}

or 2 conditions

line l !l condition
307 5 6 $opts{'indent'} ||= 0
459 4 12 $opts{'col_width'} || 76
460 3 13 $opts{'leading'} || 0
461 4 12 $opts{'indent'} || 0
474 109 15 $width - $lead - length($line) || 1

or 3 conditions

line l !l&&r !l&&!r condition
97 2 0 0 ref $self || $self