Pretty/Database/ANSI/Clause.pm

filter: Statementstmt 56.6% 17 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 100% 3 / 3 totaltotal 60.9% 25 / 41 CC 1 SCAR 3.2
CC
1
Cov
57%
order
2.0
match
2.0
action
2.0
CRAP 1.4
« Pretty/Rule.pm ↑ Summary Pretty/Database/ANSI/Statement.pm »
1 #!/usr/bin/perl
2 package SQL::QueryBuilder::Pretty::Database::ANSI::Clause;
3 1 ▶use base qw(SQL::QueryBuilder::Pretty::Rule);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = '0.01';
9  
10 1 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 0 ▶sub order { return 60 }
Subroutine order: not called CC=1 SCAR=6.9
Pod documented
14  
15 0 ▶sub match {
Subroutine match: not called CC=1 SCAR=6.9
Pod documented
16 0 return qr/
17 FROM|WHERE|HAVING
18 |
19 (?:GROUP|ORDER)\s+BY
20 |
21 (?:
22 (?:
23 (?:LEFT|RIGHT)(?:\s+OUTER)?
24 |CROSS|INNER
25 )
26 \s+
27 )?JOIN
28 /x;
29 }
30  
31 0 ▶sub action {
Subroutine action: not called CC=1 SCAR=6.9
Pod documented
32 0 my $self = shift;
33 0 my $print = shift;
34 0 my $token = shift;
35  
36 0 $print->new_line;
37 0 $print->unindent;
38 0 $print->var($token);
39 0 $print->new_line;
40 0 $print->indent;
41  
42 0 $print->indent_multiplier(2);
43 0 $print->skip_next_space(1);
44  
45 0 return 1;
46 }
47  
48 1 1;
49 __END__
« Pretty/Rule.pm ↑ Summary Pretty/Database/ANSI/Statement.pm »