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   627 use warnings;
  1         6  
  1         34  
5 1     1   7 use strict;
  1         3  
  1         25  
6 1     1   9 use Carp::Clan qw[^(DBIx::DataModel::|SQL::Abstract)];
  1         3  
  1         10  
7 1     1   105 use YAML::XS qw[Dump];
  1         2  
  1         51  
8              
9 1     1   7 use parent 'DBIx::DataModel::Schema::ResultAs';
  1         3  
  1         7  
10              
11 1     1   69 use namespace::clean;
  1         2  
  1         10  
12              
13              
14             sub get_result {
15 1     1 1 3 my ($self, $statement) = @_;
16              
17 1         8 return Dump $statement->all;
18             }
19              
20              
21             1;
22              
23             __END__