File Coverage

blib/lib/Data/Section/Pluggable/Plugin/Yaml.pm
Criterion Covered Total %
statement 30 30 100.0
branch n/a
condition n/a
subroutine 9 9 100.0
pod 0 2 0.0
total 39 41 95.1


line stmt bran cond sub pod time code
1 2     2   489640 use warnings;
  2         5  
  2         181  
2 2     2   40 use 5.020;
  2         11  
3 2     2   11 use true;
  2         5  
  2         16  
4 2     2   2556 use experimental qw( signatures );
  2         6  
  2         16  
5 2     2   377 use stable qw( postderef );
  2         5  
  2         16  
6              
7             package Data::Section::Pluggable::Plugin::Yaml 0.01 {
8              
9             # ABSTRACT: Data::Section::Pluggable Plugin for YAML
10              
11              
12 2     2   1278 use Role::Tiny::With;
  2         12794  
  2         155  
13 2     2   893 use YAML::XS ();
  2         7470  
  2         324  
14              
15             with 'Data::Section::Pluggable::Role::ContentProcessorPlugin';
16              
17 3     3 0 7661 sub extensions ($class) {
  3         7  
  3         4  
18 3         11 return ('yaml', 'yml');
19             }
20              
21 2     2 0 1249 sub process_content ($class, $dsp, $content) {
  2         4  
  2         4  
  2         4  
  2         14  
22 2         167 YAML::XS::Load($content);
23             }
24             }
25              
26             __END__