| blib/lib/Data/Hash/Diff/Smart/Renderer/YAML.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 11 | 11 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | 0 | 1 | 0.0 |
| total | 15 | 16 | 93.7 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Data::Hash::Diff::Smart::Renderer::YAML; | ||||||
| 2 | |||||||
| 3 | 1 | 1 | 8 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 50 | ||||||
| 4 | 1 | 1 | 6 | use warnings; | |||
| 1 | 25 | ||||||
| 1 | 116 | ||||||
| 5 | |||||||
| 6 | 1 | 1 | 648 | use YAML::XS (); | |||
| 1 | 4237 | ||||||
| 1 | 130 | ||||||
| 7 | |||||||
| 8 | sub render { | ||||||
| 9 | 4 | 4 | 0 | 8 | my ($changes) = @_; | ||
| 10 | |||||||
| 11 | # YAML::XS::Dump returns a trailing newline — that’s fine | ||||||
| 12 | 4 | 322 | return YAML::XS::Dump($changes); | ||||
| 13 | } | ||||||
| 14 | |||||||
| 15 | 1; |