Log4perl/Layout/NoopLayout.pm

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 2 totaltotal 62.5% 10 / 16 CC 2 SCAR 5.4
CC
2
Cov
80%
new
2.1
render
1.0
CRAP 1.7
« Log4perl/Filter/MDC.pm ↑ Summary Log4perl/Filter.pm »
1 ##################################################
2 package Log::Log4perl::Layout::NoopLayout;
3 ##################################################
4  
5  
6 ##################################################
7 8 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
8 ##################################################
9 8 my $class = shift;
10 8 ▶ $class = ref ($class) || $class;
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
080
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
11  
12 8 my $self = {
13 format => undef,
14 info_needed => {},
15 stack => [],
16 };
17  
18 8 bless $self, $class;
19  
20 8 return $self;
21 }
22  
23 ##################################################
24 13 ▶sub render {
Subroutine render: called CC=1 SCAR=0.0
Pod undocumented
25 ##################################################
26 #my($self, $message, $category, $priority, $caller_level) = @_;
27 13 return $_[1];;
28 }
29  
30 4 1;
31  
32 __END__
« Log4perl/Filter/MDC.pm ↑ Summary Log4perl/Filter.pm »