line |
true |
false |
branch |
83
|
13 |
13 |
if (ref $arg eq 'HASH') |
120
|
18 |
5 |
exists $$this{'bullets'} ? : |
|
13 |
23 |
exists $args{'bullets'} ? : |
|
0 |
36 |
exists $ENV{'term_emit_bullets'} ? : |
129
|
0 |
36 |
exists $ENV{'term_emit_color'} ? : |
135
|
0 |
36 |
exists $ENV{'term_emit_ellipsis'} ? : |
141
|
15 |
21 |
exists $args{'maxdepth'} ? : |
|
0 |
36 |
exists $ENV{'term_emit_maxdepth'} ? : |
145
|
7 |
29 |
exists $args{'showseverity'} ? : |
|
0 |
36 |
exists $ENV{'term_emit_showseverity'} ? : |
149
|
17 |
12 |
defined $$this{'step'} ? : |
|
7 |
29 |
exists $args{'step'} ? : |
|
0 |
36 |
exists $ENV{'term_emit_step'} ? : |
157
|
0 |
36 |
exists $ENV{'term_emit_trailer'} ? : |
163
|
0 |
36 |
exists $ENV{'term_emit_width'} ? : |
178
|
2 |
34 |
if (ref $$this{'bullets'} eq 'ARRAY') { } |
|
0 |
34 |
elsif ($$this{'bullets'}) { } |
180
|
2 |
6 |
if length $b > $$this{'bullet_width'} |
196
|
0 |
288 |
defined $, ? : |
197
|
4 |
284 |
if (@args and ref $args[0] eq 'ARRAY') |
207
|
0 |
288 |
unless (@args) |
217
|
0 |
288 |
if wantarray |
221
|
5 |
283 |
defined $$opts{'closetext'} ? : |
234
|
31 |
257 |
if defined $$this{'maxdepth'} and $level >= $$this{'maxdepth'} |
239
|
67 |
190 |
if $$this{'pos'} |
241
|
0 |
257 |
unless $s |
246
|
0 |
257 |
if $$opts{'adjust_level'} and $$opts{'adjust_level'} =~ /^-?\d+$/msx |
250
|
0 |
257 |
defined $$opts{'timestamp'} ? : |
251
|
2 |
255 |
if $tsr and not ref $tsr |
252
|
3 |
254 |
$tsr ? : |
262
|
0 |
281 |
unless $s |
263
|
24 |
257 |
@mlines ? : |
264
|
0 |
281 |
unless $s |
280
|
175 |
318 |
defined $SEVLEV{uc $sev} ? : |
285
|
205 |
288 |
if defined $want_level and $ret_level != $want_level |
288
|
0 |
288 |
unless $ENV{$this->_envvar} |
291
|
173 |
115 |
if $level <= 0 |
295
|
20 |
268 |
defined $$this{'showseverity'} ? : |
|
0 |
288 |
defined $$opts{'showseverity'} ? : |
299
|
26 |
251 |
if ($sevlev < $showseverity and defined $$this{'maxdepth'} and $level >= $$this{'maxdepth'}) |
308
|
28 |
234 |
if ($$opts{'silent'}) |
310
|
21 |
7 |
if $$this{'pos'} |
312
|
0 |
28 |
unless $s |
322
|
0 |
234 |
if $$this{'color'} |
329
|
3 |
231 |
if ($$this{'pos'} and $omsg ne $cmsg) |
332
|
0 |
3 |
unless $s |
335
|
3 |
158 |
if ($$this{'pos'} and defined $$this{'maxdepth'} and $level >= $$this{'maxdepth'}) |
340
|
0 |
3 |
unless $s |
343
|
76 |
158 |
if ($$this{'pos'} == 0) |
345
|
0 |
76 |
defined $$opts{'timestamp'} ? : |
346
|
0 |
76 |
if $tsr and not ref $tsr |
347
|
0 |
76 |
$tsr ? : |
357
|
0 |
83 |
unless $s |
358
|
7 |
76 |
if @mlines |
360
|
0 |
83 |
unless $s |
371
|
234 |
0 |
if $ndots > 0 |
373
|
0 |
234 |
unless $s |
377
|
0 |
234 |
unless $s |
383
|
5 |
229 |
if $reason |
385
|
0 |
234 |
unless $s |
399
|
0 |
2 |
if defined $$this{'maxdepth'} and $level > $$this{'maxdepth'} |
405
|
0 |
2 |
unless $s |
407
|
0 |
2 |
unless $s |
409
|
0 |
2 |
unless $s |
418
|
0 |
4 |
defined $, ? : |
424
|
0 |
4 |
if defined $$this{'maxdepth'} and $level > $$this{'maxdepth'} |
429
|
0 |
4 |
if (length $msg > $avail) |
434
|
0 |
0 |
unless $s |
436
|
0 |
0 |
unless $s |
443
|
0 |
4 |
unless $s |
455
|
0 |
10 |
defined $, ? : |
460
|
0 |
5 |
if not $$opts{'force'} and defined $$this{'maxdepth'} and $level > $$this{'maxdepth'} |
465
|
5 |
5 |
if $$this{'pos'} |
467
|
0 |
10 |
unless $s |
471
|
0 |
10 |
if $$opts{'adjust_level'} and $$opts{'adjust_level'} =~ /^-?\d+$/msx |
481
|
0 |
10 |
unless $s |
511
|
70 |
263 |
if (ref $$this{'bullets'} eq 'ARRAY') { } |
|
0 |
263 |
elsif ($$this{'bullets'}) { } |
513
|
2 |
68 |
$level > $pmax ? : |
550
|
1 |
16 |
if $sev =~ /\bEMERG(ENCY)?/i |
551
|
1 |
16 |
if $sev =~ /\bALERT\b/i |
552
|
1 |
16 |
if $sev =~ /\bCRIT(ICAL)?\b/i |
553
|
1 |
16 |
if $sev =~ /\bFAIL(URE)?\b/i |
554
|
1 |
16 |
if $sev =~ /\bFATAL\b/i |
555
|
1 |
16 |
if $sev =~ /\bERR(OR)?\b/i |
556
|
1 |
16 |
if $sev =~ /\bWARN(ING)?\b/i |
557
|
1 |
16 |
if $sev =~ /\bNOTE\b/i |
558
|
1 |
16 |
if $sev =~ /\bINFO(RMATION)?\b/i |
559
|
1 |
16 |
if $sev =~ /\bOK\b/i |
560
|
1 |
16 |
if $sev =~ /\bDEBUG\b/i |
561
|
1 |
16 |
if $sev =~ /\bNOTRY\b/i |
562
|
1 |
16 |
if $sev =~ /\bUNK(OWN)?\b/i |
563
|
1 |
16 |
if $sev =~ /\bYES\b/i |
564
|
1 |
16 |
if $sev =~ /\bNO\b/i |
565
|
15 |
2 |
if $zon |
581
|
1532 |
854 |
if ref $fh eq 'SCALAR' |
582
|
331 |
523 |
if ref $fh |
615
|
308 |
525 |
ref $_[0] eq 'Term::Emit' ? : |
617
|
12 |
821 |
if ($oid) |
622
|
6 |
6 |
if ($fh eq $BASE_OBJECT{'0'}{'fh'}) { } |
|
3 |
3 |
elsif (not exists $BASE_OBJECT{$oid}) { } |
633
|
329 |
504 |
if (ref $_[0] eq 'HASH') |
646
|
1221 |
18 |
ref $fh eq 'SCALAR' ? : |
664
|
2 |
346 |
if not defined $msg or $max < 3 or $min > $max |
680
|
29 |
125 |
if (substr($split, $pos, 1) =~ /\s/msx) |
686
|
5 |
29 |
if $pos < $min |