| blib/lib/Lingy/Compiler/YAML.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 6 | 8 | 75.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 3 | 66.6 |
| pod | 0 | 1 | 0.0 |
| total | 8 | 12 | 66.6 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Lingy::Compiler::YAML; | ||||||
| 2 | 1 | 1 | 2152 | use Lingy::Base; | |||
| 1 | 4 | ||||||
| 1 | 11 | ||||||
| 3 | extends 'Lingy::Compiler'; | ||||||
| 4 | |||||||
| 5 | 1 | 1 | 780 | use YAML::XS; | |||
| 1 | 3836 | ||||||
| 1 | 102 | ||||||
| 6 | |||||||
| 7 | sub compile { | ||||||
| 8 | 0 | 0 | 0 | my ($self, $input) = @_; | |||
| 9 | 0 | YAML::XS::Load($input); | |||||
| 10 | } | ||||||
| 11 | |||||||
| 12 | 1; |