Interpreter/Delegate/LineLogger/SilentSaveLines.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Interpreter/Delegate/LineLogger/Silent.pm ↑ Summary Interpreter/Role/Executor.pm »
1 package Bat::Interpreter::Delegate::LineLogger::SilentSaveLines;
2  
3 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Types::Standard qw(ArrayRef);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 with 'Bat::Interpreter::Role::LineLogger';
10  
11 1 our $VERSION = '0.025'; # VERSION
12  
13 has 'lines' => ( is => 'ro',
14 isa => ArrayRef,
15 1 ▶ default => sub { [] },
Subroutine __ANON__: called CC=1 SCAR=0.0
16 1 );
17  
18 22 ▶sub log_line {
Subroutine log_line: called CC=1 SCAR=0.0
Pod documented
19 22 my $self = shift();
20 22 push @{ $self->lines }, @_;
21 22 return 0;
22 }
23  
24 1 1;
25  
26 __END__
« Interpreter/Delegate/LineLogger/Silent.pm ↑ Summary Interpreter/Role/Executor.pm »