blib/lib/Dancer/Plugin/JSON/Schema.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 20 | 80.0 |
line | true | false | branch |
---|---|---|---|
20 | 5 | 4 | unless (defined $name) |
21 | 1 | 4 | if (keys %$cfg == 1) { } |
4 | 0 | elsif (keys %$cfg) { } | |
30 | 1 | 8 | if $$schemas{$name} |
32 | 2 | 6 | unless my $options = $$cfg{$name} |
34 | 3 | 3 | if (my $alias = $$options{'alias'}) |
35 | 1 | 2 | unless $options = $$cfg{$alias} |
37 | 2 | 0 | if $$schemas{$alias} |
51 | 3 | 0 | unless (ref $$schema_info{'schema'}) |
55 | 0 | 3 | unless open my $fh, '<', $fn |