blib/lib/UNIVERSAL/to_yaml.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 18 | 19 | 94.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package UNIVERSAL::to_yaml; | ||||||
2 | |||||||
3 | 2 | 2 | 40061 | use warnings; | |||
2 | 4 | ||||||
2 | 58 | ||||||
4 | 2 | 2 | 8 | use strict; | |||
2 | 4 | ||||||
2 | 51 | ||||||
5 | 2 | 2 | 21 | use v5.8.0; | |||
2 | 9 | ||||||
2 | 99 | ||||||
6 | 2 | 2 | 1763 | use Best [ qw(YAML::Syck YAML), qw(Dump) ]; | |||
2 | 9937 | ||||||
2 | 14 | ||||||
7 | our $VERSION = '0.10'; | ||||||
8 | |||||||
9 | sub UNIVERSAL::to_yaml { | ||||||
10 | 1 | 1 | 0 | 1919 | Dump( $_[0] ) | ||
11 | } | ||||||
12 | |||||||
13 | |||||||
14 | 1; | ||||||
15 | __END__ |