File Coverage

blib/lib/DBIx/Romani/Query/SQL/Literal.pm
Criterion Covered Total %
statement 0 15 0.0
branch 0 2 0.0
condition n/a
subroutine 0 4 0.0
pod 0 4 0.0
total 0 25 0.0


line stmt bran cond sub pod time code
1              
2             package DBIx::Romani::Query::SQL::Literal;
3              
4             sub new
5             {
6 0     0 0   my $class = shift;
7 0           my $args = shift;
8              
9 0           my $value;
10              
11 0 0         if ( ref($args) eq 'HASH' )
12             {
13 0           $value = $args->{value};
14             }
15             else
16             {
17 0           $value = $args;
18             }
19              
20 0           my $self = {
21             value => $value,
22             };
23              
24 0           bless $self, $class;
25 0           return $self;
26             }
27              
28 0     0 0   sub get_value { return shift->{value}; }
29              
30             sub visit
31             {
32 0     0 0   my ($self, $visitor) = @_;
33 0           return $visitor->visit_sql_literal( $self );
34             }
35              
36             sub clone
37             {
38 0     0 0   my $self = shift;
39              
40 0           my $args = {
41             value => $self->get_value()
42             };
43              
44 0           return DBIx::Romani::Query::SQL::Literal->new($args);
45             }
46              
47             1;
48