Pretty/Rule.pm

filter: Statementstmt 56.0% 14 / 25 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 40.0% 4 / 10 Podpod 100% 6 / 6 totaltotal 52.1% 24 / 46 CC 2 SCAR 8.6
CC
2
Cov
50%
new
6.0
action
2.0
match
2.0
CRAP 2.4
« Pretty/Handler/DBI/db.pm ↑ Summary Pretty/Database/ANSI/Clause.pm »
1 #!/usr/bin/perl
2 package SQL::QueryBuilder::Pretty::Rule;
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '0.01';
8  
9 1 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
13 0 my $class = shift;
14 0 ▶ return bless { @_ }, ref $class || $class;
Condition0%0/3
ref $class || $class
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table0%0/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
15 }
16  
17 0 ▶sub action {
Subroutine action: not called CC=1 SCAR=6.9
Pod documented
18 0 my $self = shift;
19 0 my $print = shift;
20 0 my $token = shift;
21  
22 0 $print->var($token);
23  
24 0 return 1;
25 }
26  
27 0 ▶sub match { croak 'Must subclass match!'; }
Subroutine match: not called CC=1 SCAR=6.9
Pod documented
28 0 ▶sub name { return ( ref shift ) =~ /::([^:]+)$/; }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
29 0 ▶sub order { return 999 }
Subroutine order: not called CC=1 SCAR=6.9
Pod documented
30 0 ▶sub type { croak 'Must subclass type!'; }
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
31  
32 1 1;
33 __END__
« Pretty/Handler/DBI/db.pm ↑ Summary Pretty/Database/ANSI/Clause.pm »