Romani/Query/SQL/TTT/Function.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 40 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
get_name
2.0
visit
2.0
CRAP 2.0
1  
2 package DBIx::Romani::Query::SQL::TTT::Function;
3 use base qw(DBIx::Romani::Query::Function);
4  
5 use DBIx::Romani::Query::SQL::Column;
6 use DBIx::Romani::Query::SQL::Literal;
7 use strict;
8  
9 sub new
10 {
11 my $class = shift;
12 my $self = $class->SUPER::new();
13  
14 my $name = shift;
15 $self->{name} = $name;
16  
17 bless $self, $class;
18 return $self;
19 }
20  
21 sub get_name { return shift->{name} };
22  
23 sub visit
24 {
25 my ($self, $visitor) = @_;
26 return $visitor->visit_ttt_function( $self );
27 }
28  
29 sub clone
30 {
31 my $self = shift;
32  
33 my $clone = DBIx::Romani::Query::SQL::TTT::Function->new( $self->get_name() );
34  
35 foreach my $keyword ( @{$self->get_keywords()} )
36 {
37 $clone->add_keyword( $keyword );
38 }
39  
40 $clone->copy_arguments( $self );
41  
42 return $clone;
43 }
44  
45 1;
46