| blib/lib/YAML/PP/Schema/JSON.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 18 | 20 | 90.0 |
| line | true | false | branch |
|---|---|---|---|
| 32 | 0 | 2 | if ($opt eq 'empty=str') { } |
| 1 | 1 | elsif ($opt eq 'empty=null') { } | |
| 46 | 1 | 20 | if ($empty_null) { } |
| 105 | 21 | 0 | if ($schema->bool_class) |
| 107 | 19 | 2 | if ($class eq "perl") |
| 141 | 7 | 379 | if (int $node->{'value'} ne $node->{'value'}) |
| 156 | 48 | 83 | if (exists $special{$node->{'value'}}) |
| 161 | 4 | 79 | if (0 + $node->{'value'} ne $node->{'value'}) |
| 164 | 35 | 44 | if (int $node->{'value'} eq $node->{'value'} and not $node->{'value'} =~ /\./) |
| 174 | 33 | 33 | $node->{'value'} ? : |