blib/lib/Data/YAML/Writer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 24 | 75.0 |
line | true | false | branch |
---|---|---|---|
29 | 0 | 15 | unless @_ |
35 | 0 | 15 | unless ref $out |
52 | 13 | 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) { } | |
77 | 3 | 199 | unless defined $val |
79 | 10 | 189 | if ($val =~ /$ESCAPE_CHAR/) |
86 | 11 | 178 | if (length $val == 0 or $val =~ /\s/) |
100 | 34 | 101 | if (my $ref = ref $obj) { } |
103 | 26 | 8 | if ('HASH' eq $ref) { } |
8 | 0 | elsif ('ARRAY' eq $ref) { } |