blib/lib/Command/Test/Tree1/Echo2.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 SCAR 24.8
CC
3
Cov
0%
execute
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 12.0
1 use strict;
2 use warnings;
3 use UR;
4 use Command;
5  
6 package Command::Test::Tree1::Echo2;
7  
8 class Command::Test::Tree1::Echo2 {
9 is => 'Command',
10 has => [
11 in => { is => 'Text' },
12 out => { is => 'Text', is_output => 1, is_optional => 1 },
13 ],
14 doc => 'test command 2 to echo output',
15 };
16  
17 sub execute {
18 my $self = shift;
19 for (1..6) {
20 print $self->in,"\n";
21 sleep 1;
22 }
23 if ($self->in =~ /fail/) {
24 return;
25 }
26 elsif ($self->in =~ /die/) {
27 die $self->in;
28 }
29 $self->out($self->in);
30 return 1;
31 }
32  
33 1;
34