File Coverage

blib/lib/DBIx/DataModel/Schema/ResultAs/Yaml.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 1 1 100.0
total 28 28 100.0


line stmt bran cond sub pod time code
1             #----------------------------------------------------------------------
2             package DBIx::DataModel::Schema::ResultAs::Yaml;
3             #----------------------------------------------------------------------
4 1     1   537 use warnings;
  1         3  
  1         30  
5 1     1   5 use strict;
  1         2  
  1         20  
6 1     1   5 use Carp::Clan qw[^(DBIx::DataModel::|SQL::Abstract)];
  1         2  
  1         11  
7 1     1   86 use YAML::XS qw[Dump];
  1         3  
  1         41  
8              
9 1     1   5 use parent 'DBIx::DataModel::Schema::ResultAs';
  1         2  
  1         8  
10              
11 1     1   57 use namespace::clean;
  1         2  
  1         8  
12              
13              
14             sub get_result {
15 1     1 1 3 my ($self, $statement) = @_;
16              
17 1         7 return Dump $statement->all;
18             }
19              
20              
21             1;
22              
23             __END__