File Coverage

lib/DBIx/ActiveRecord/Arel/SubQuery.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 3 0.0
total 17 20 85.0


line stmt bran cond sub pod time code
1             package DBIx::ActiveRecord::Arel::SubQuery;
2 2     2   11 use strict;
  2         3  
  2         78  
3 2     2   10 use warnings;
  2         4  
  2         249  
4              
5             sub new {
6 1     1 0 2 my ($self, $arel) = @_;
7 1         6 bless {arel => $arel}, $self;
8             }
9              
10             sub placeholder {
11 1     1 0 2 my $self = shift;
12 1         4 return $self->{arel}->to_sql;
13             }
14              
15             sub binds {
16 1     1 0 2 my $self = shift;
17 1         4 $self->{arel}->binds;
18             }
19              
20             1;