Condition Coverage

blib/lib/String/Tagged/IRC.pm
Criterion Covered Total %
condition 21 34 61.7


and 3 conditions

line !l l&&!r l&&r condition
105 0 0 2 $colcode =~ /^(\d\d?)/ and $1 < 16
120 0 0 3 $idx >= 0 and $idx < @termcolours
199 1 20 0 length $piece and $opts{'parse_plain_formatting'}

or 2 conditions

line l !l condition
253 0 3 $opts{'default_fg'} // 0
270 1 8 $fg // ''
1 8 $formats{'fg'} // ''
1 6 $bg // ''
0 7 $formats{'bg'} // ''

or 3 conditions

line l !l&&r !l&&!r condition
139 0 0 14 $ctrl eq 'U' or $ctrl eq '_'
0 2 12 $ctrl eq 'R' or $ctrl eq ']'
270 2 1 6 ($fg // '') ne ($formats{'fg'} // '') or ($bg // '') ne ($formats{'bg'} // '')
273 0 0 1 $fg //= $default_fg
294 1 0 2 defined $formats{'fg'} or defined $formats{'bg'}