| blib/lib/CPAN/Packager/Config/Schema.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 9 | 13 | 69.2 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 4 | 75.0 |
| pod | 0 | 1 | 0.0 |
| total | 12 | 18 | 66.6 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package CPAN::Packager::Config::Schema; | ||||||
| 2 | 1 | 1 | 5 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 28 | ||||||
| 3 | 1 | 1 | 5 | use warnings; | |||
| 1 | 3 | ||||||
| 1 | 21 | ||||||
| 4 | 1 | 1 | 6 | use YAML (); | |||
| 1 | 2 | ||||||
| 1 | 81 | ||||||
| 5 | |||||||
| 6 | sub schema { | ||||||
| 7 | 0 | 0 | 0 | my @lines; | |||
| 8 | 0 | while () { | |||||
| 9 | 0 | push @lines, $_; | |||||
| 10 | } | ||||||
| 11 | 0 | return YAML::Load( join '', @lines ); | |||||
| 12 | } | ||||||
| 13 | |||||||
| 14 | 1; | ||||||
| 15 | |||||||
| 16 | __DATA__ |