Branch Coverage

blib/lib/App/yajg/Output.pm
Criterion Covered Total %
branch 4 26 15.3


line true false branch
27 0 0 if ref $class
29 0 0 unless $class->can_highlight and length $string
33 0 0 unless (defined $pid)
39 0 0 unless ($pid)
40 0 0 unless open my $hl_in, '|-', 'highlight', '-O', 'ansi', '-S', $class->lang
42 0 0 if utf8::is_utf8($string)
51 0 0 unless $? == 0
52 0 0 if $utf8 and not utf8::is_utf8($highlighted)
64 19 12 unless @_
73 0 1 unless $class->need_change_depth and $self->max_depth
77 0 1 if ($@ or not defined $VAR1) { }
94 0 0 if $self->color and $class->can_highlight
95 0 0 if utf8::is_utf8($out)