Romani/Query/Function/Now.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
add
2.0
visit
2.0
CRAP 2.0
1  
2 package DBIx::Romani::Query::Function::Now;
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 $args = shift;
13  
14 my $self = $class->SUPER::new();
15  
16 bless $self, $class;
17 return $self;
18 }
19  
20 sub add
21 {
22 my ($self, $value) = @_;
23
24 die "Now function cannot have any arguments";
25 }
26  
27 sub visit
28 {
29 my ($self, $visitor) = @_;
30 return $visitor->visit_function_now( $self );
31 }
32  
33 1;
34