blib/lib/Data/YAML/Writer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 24 | 75.0 |
line | true | false | branch |
---|---|---|---|
29 | 0 | 19 | unless @_ |
35 | 0 | 19 | unless ref $out |
52 | 17 | 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 | 211 | unless defined $val |
79 | 12 | 199 | if ($val =~ /$ESCAPE_CHAR/ or $val =~ /:$/) |
86 | 11 | 188 | if (length $val == 0 or $val =~ /\s/) |
100 | 42 | 105 | if (my $ref = ref $obj) { } |
103 | 34 | 8 | if ('HASH' eq $ref) { } |
8 | 0 | elsif ('ARRAY' eq $ref) { } |