Condition Coverage

blib/lib/Term/Emit.pm
Criterion Covered Total %
condition 70 98 71.4


and 3 conditions

line !l l&&!r l&&r condition
197 0 284 4 @args and ref $args[0] eq 'ARRAY'
234 233 24 31 defined $$this{'maxdepth'} and $level >= $$this{'maxdepth'}
246 257 0 0 $$opts{'adjust_level'} and $$opts{'adjust_level'} =~ /^-?\d+$/msx
251 254 1 2 $tsr and not ref $tsr
285 205 83 205 defined $want_level and $ret_level != $want_level
299 11 227 50 $sevlev < $showseverity and defined $$this{'maxdepth'}
238 24 26 $sevlev < $showseverity and defined $$this{'maxdepth'} and $level >= $$this{'maxdepth'}
329 70 161 3 $$this{'pos'} and $omsg ne $cmsg
335 73 152 9 $$this{'pos'} and defined $$this{'maxdepth'}
225 6 3 $$this{'pos'} and defined $$this{'maxdepth'} and $level >= $$this{'maxdepth'}
346 76 0 0 $tsr and not ref $tsr
399 2 0 0 defined $$this{'maxdepth'} and $level > $$this{'maxdepth'}
424 4 0 0 defined $$this{'maxdepth'} and $level > $$this{'maxdepth'}
460 5 5 0 not $$opts{'force'} and defined $$this{'maxdepth'}
10 0 0 not $$opts{'force'} and defined $$this{'maxdepth'} and $level > $$this{'maxdepth'}
471 10 0 0 $$opts{'adjust_level'} and $$opts{'adjust_level'} =~ /^-?\d+$/msx

or 2 conditions

line l !l condition
114 33 3 $args{'fh'} || $$this{'fh'} || \*{$deffh;}
116 21 15 $args{'envbase'} || $$this{'envbase'} || 'term_emit_fd'
125 21 15 $args{'closestat'} || $$this{'closestat'} || 'DONE'
129 0 36 $args{'color'} || $$this{'color'} || 0
135 21 15 $args{'ellipsis'} || $$this{'ellipsis'} || '...'
154 2 34 $args{'timestamp'} || $$this{'timestamp'} || 0
157 21 15 $args{'trailer'} || $$this{'trailer'} || '.'
163 34 2 $args{'width'} || $$this{'width'} || 80
201 4 0 $$pair[0] || ''
226 115 173 $ENV{$this->_envvar}++ || 0
279 476 17 shift @args || 'DONE'
283 360 133 $ENV{$this->_envvar} || 0
398 2 0 $ENV{$this->_envvar} || 0
423 4 0 $ENV{$this->_envvar} || 0
459 10 0 $ENV{$this->_envvar} || 0
583 29 494 fileno($fh || '') || 0

or 3 conditions

line l !l&&r !l&&!r condition
54 0 18 0 ref $proto || $proto
92 0 15 0 $BASE_OBJECT{'0'} ||= 'Term::Emit'->new(%opts)
202 4 0 0 $$pair[1] || $otext
664 1 1 347 not defined $msg or $max < 3
2 1 346 not defined $msg or $max < 3 or $min > $max
706 0 0 0 ref $proto || $proto