File Coverage

blib/lib/DBIx/Romani/Query/SQL/TTT/Function.pm
Criterion Covered Total %
statement 12 28 42.8
branch n/a
condition n/a
subroutine 4 8 50.0
pod 0 4 0.0
total 16 40 40.0


line stmt bran cond sub pod time code
1              
2             package DBIx::Romani::Query::SQL::TTT::Function;
3 1     1   7 use base qw(DBIx::Romani::Query::Function);
  1         3  
  1         715  
4              
5 1     1   7 use DBIx::Romani::Query::SQL::Column;
  1         3  
  1         22  
6 1     1   894 use DBIx::Romani::Query::SQL::Literal;
  1         3  
  1         38  
7 1     1   6 use strict;
  1         2  
  1         230  
8              
9             sub new
10             {
11 0     0 0   my $class = shift;
12 0           my $self = $class->SUPER::new();
13              
14 0           my $name = shift;
15 0           $self->{name} = $name;
16              
17 0           bless $self, $class;
18 0           return $self;
19             }
20              
21 0     0 0   sub get_name { return shift->{name} };
22              
23             sub visit
24             {
25 0     0 0   my ($self, $visitor) = @_;
26 0           return $visitor->visit_ttt_function( $self );
27             }
28              
29             sub clone
30             {
31 0     0 0   my $self = shift;
32              
33 0           my $clone = DBIx::Romani::Query::SQL::TTT::Function->new( $self->get_name() );
34              
35 0           foreach my $keyword ( @{$self->get_keywords()} )
  0            
36             {
37 0           $clone->add_keyword( $keyword );
38             }
39              
40 0           $clone->copy_arguments( $self );
41              
42 0           return $clone;
43             }
44              
45             1;
46