Interpreter/Delegate/Executor/System.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
execute_command
2.0
execute_for_command
2.0
BEGIN
2.0
CRAP 2.0
1 package Bat::Interpreter::Delegate::Executor::System;
2  
3 use utf8;
4  
5 use Moo;
6 use namespace::autoclean;
7  
8 with 'Bat::Interpreter::Role::Executor';
9  
10 our $VERSION = '0.025'; # VERSION
11  
12 sub execute_command {
13 my $self = shift();
14 my $command = shift();
15 return system($command);
16 }
17  
18 sub execute_for_command {
19 my $self = shift();
20 my $command = shift();
21 my $output = `$command`;
22 chomp $output;
23 return $output;
24 }
25  
26 1;
27  
28 __END__