File Coverage

lib/DBIx/ActiveRecord/Arel/Native.pm
Criterion Covered Total %
statement 11 13 84.6
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 4 0.0
total 16 23 69.5


line stmt bran cond sub pod time code
1             package DBIx::ActiveRecord::Arel::Native;
2 2     2   27 use strict;
  2         4  
  2         76  
3 2     2   9 use warnings;
  2         4  
  2         254  
4              
5             sub new {
6 2     2 0 5 my ($self, $func) = @_;
7 2         15 bless {func => $func}, $self;
8             }
9              
10             sub placeholder {
11 2     2 0 3 my $self = shift;
12 2         6 return $self->{func};
13             }
14              
15 2     2 0 6 sub name {shift->placeholder}
16              
17 0     0 0   sub binds {@{[]}}
  0            
18             1;