blib/lib/ODS/Serialize/YAML.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 10 | 10 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 14 | 16 | 87.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package ODS::Serialize::YAML; | ||||||
2 | |||||||
3 | 71 | 71 | 544 | use YAOO; | |||
71 | 142 | ||||||
71 | 707 | ||||||
4 | |||||||
5 | 71 | 71 | 56861 | use YAML::XS; | |||
71 | 251433 | ||||||
71 | 12029 | ||||||
6 | |||||||
7 | has file_suffix => isa(string('yml')); | ||||||
8 | |||||||
9 | sub parse { | ||||||
10 | 69 | 69 | 0 | 401 | my ($self, $data) = @_; | ||
11 | 69 | 17329 | return Load $data; | ||||
12 | } | ||||||
13 | |||||||
14 | sub stringify { | ||||||
15 | 1764 | 1764 | 0 | 22262 | my ($self, $data) = @_; | ||
16 | 1764 | 299130 | return Dump $data; | ||||
17 | } | ||||||
18 | |||||||
19 | 1; |