Branch Coverage

blib/lib/TAP/Parser/YAMLish/Writer.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
25 0 20 unless @_
31 0 20 unless ref $out
48 18 2 if ('CODE' eq $ref) { }
1 1 elsif ('ARRAY' eq $ref) { }
1 0 elsif ('SCALAR' eq $ref) { }
0 0 elsif ('GLOB' eq $ref or 'IO::Handle' eq $ref) { }
74 3 209 unless defined $val
76 19 190 if ($val =~ /$rule/)
83 3 187 if (length $val == 0 or $val =~ /\s/)
97 41 107 if (my $ref = ref $obj) { }
99 30 11 if ('HASH' eq $ref) { }
11 0 elsif ('ARRAY' eq $ref) { }
100 28 2 if (keys %$obj) { }
115 9 2 if (@$obj) { }