blib/lib/Inline/YAML.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 16 | 16 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 1 | 1 | 26499 | use strict; use warnings; | |||
1 | 1 | 2 | |||||
1 | 36 | ||||||
1 | 5 | ||||||
1 | 1 | ||||||
1 | 53 | ||||||
2 | package Inline::YAML; | ||||||
3 | our $VERSION = '0.15'; | ||||||
4 | |||||||
5 | 1 | 1 | 6869 | use Filter::Simple; | |||
1 | 51525 | ||||||
1 | 9 | ||||||
6 | 1 | 1 | 949 | use YAML::XS; | |||
1 | 3553 | ||||||
1 | 117 | ||||||
7 | |||||||
8 | FILTER { | ||||||
9 | s/(\r?\n\-\-\-.*?\n\.\.\.\r?\n)/ YAML::XS::Load(<<'...');$1/gs; | ||||||
10 | }; | ||||||
11 | |||||||
12 | 1; |